From 9f2bb72017dc8d8812d0838d239e45d56aedc2b0 Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 23 Aug 2021 13:50:18 +0200 Subject: [PATCH] Fallback to /bin/sh if the $SHELL is fishy ##build --- sys/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/install.sh b/sys/install.sh index 9bd56bbfeb..b83c0b5fcc 100755 --- a/sys/install.sh +++ b/sys/install.sh @@ -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