summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions5
1 files changed, 4 insertions, 1 deletions
diff --git a/functions b/functions
index 682636e..c1e938e 100644
--- a/functions
+++ b/functions
@@ -1299,8 +1299,11 @@ check_sane_mount () {
;;
esac
+ SH=/bin/sh
+ [ -x $SH ] || SH=`which sh`
+
cat > "$1/test-exec" <<EOF
-#! `type sh`
+#! $SH
:
EOF
chmod +x "$1/test-exec"