Fallback to /bin/sh if the $SHELL is fishy ##build

This commit is contained in:
pancake 2021-08-23 13:50:18 +02:00
parent 25c1472a95
commit 9f2bb72017

View File

@ -99,6 +99,11 @@ if [ "${USE_SU}" = 1 ]; then
SUDO="/bin/su -m root -c"
fi
${SHELL} --help 2> /dev/null | grep -q fish
if [ $? = 0 ]; then
SHELL=/bin/sh
fi
if [ "${M32}" = 1 ]; then
${SHELL} ./sys/build-m32.sh ${ARGS} || exit 1
elif [ "${HARDEN}" = 1 ]; then