fix(offload-build): Handle non-bash shell on build server
Yesterday I had DevOps change my default shell on build.archlinux.org from bash to fish. This broke offload builds with pkgctl in the following way:
$ pkgctl build --testing --offload
==> Updating pacman database cache
:: Synchronizing package databases...
core downloading...
extra downloading...
multilib downloading...
==> Building opentofu
-> repo: extra-testing
-> arch: x86_64
-> worker: carsme-7
==> Building opentofu for [extra-testing] (x86_64)
==> Creating source package...
-> Adding PKGBUILD...
-> Generating .SRCINFO file...
-> Adding tofu.fish...
-> Compressing source package...
==> Leaving fakeroot environment.
fish: Unsupported use of '='. In fish, please use 'set temp "${XDG_CACHE_HOME:-$HOME/.cache}/offload-build"'.
temp="${XDG_CACHE_HOME:-$HOME/.cache}/offload-build" &&
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Solve this by explicitly using bash for the commands sent via SSH by offload-build.