spiegel-keyman/resources/build/xcode-wrap.sh
sgschantz ec64a98562 chore(ios): modify version scripts
Wrap scripts for FirstVoices so that environment variables are retained
2024-04-29 15:52:00 +07:00

11 lines
No EOL
356 B
Bash
Executable file

#!/usr/bin/env bash
echo "wrap script for arch $(arch)"
if [[ $(arch) == i386 ]] && [[ -f /usr/local/bin/bash ]]; then
/usr/local/bin/bash -l "$@" || exit $?
elif [[ $(arch) == arm64 ]] && [[ -f /opt/homebrew/bin/bash ]]; then
/opt/homebrew/bin/bash -l "$@" || exit $?
else
>&2 echo "Could not start build due to missing homebrew bash"
exit 55
fi