Squashed 'gitstatus/' changes from f9acc15a..cb363c77

cb363c77 build: use zsh if possible when langued with bash < 4.0 (#188)
efb0fd1b make mbuild work with darwin-aarch64
c9e6e608 do not hardcode path to homebrew, retrieve it with `brew --prefix`
df4eba94 work around bugs in ancient versions of bash (#188)

git-subtree-dir: gitstatus
git-subtree-split: cb363c778a37575b0d5371d7e355d80ec7ae5498
This commit is contained in:
Roman Perepelitsa 2020-11-17 10:02:15 +01:00
commit 790f4719ab
2 changed files with 15 additions and 7 deletions

7
mbuild
View file

@ -181,9 +181,10 @@ local build='
function build-unix() {
local intro flags=(-sw)
case $2 in
linux-ppc64le);;
linux-*) flags+=(-d docker);;
darwin-*) intro='PATH="/usr/local/bin:$PATH"';;
linux-ppc64le) ;;
linux-*) flags+=(-d docker);;
darwin-aarch64) intro='PATH="/opt/homebrew/bin:$PATH"';;
darwin-*) intro='PATH="/usr/local/bin:$PATH"';;
esac
ssh $1 -- /bin/sh -uex <<<"
$intro