]> gitweb.factorcode.org Git - factor.git/commitdiff
Use the bash path instead of /bin/sh for running a bash script
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 11 Jan 2010 04:42:26 +0000 (22:42 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 11 Jan 2010 04:42:26 +0000 (22:42 -0600)
build-support/factor.sh

index d090433d98e2fe705bcdc39826292362d0c65f49..2f8745aeef878c13aaf1a57fdde04dfe0703fb10 100755 (executable)
@@ -347,8 +347,8 @@ update_script_name() {
 
 update_script() {
     update_script=`update_script_name`
-    
-    echo "#!/bin/sh" >"$update_script"
+       bash_path=`which bash`
+    echo "#!$bash_path" >"$update_script"
     echo "git pull \"$GIT_URL\" master" >>"$update_script"
     echo "if [[ \$? -eq 0 ]]; then exec \"$0\" $SCRIPT_ARGS; else echo \"git pull failed\"; exit 2; fi" \
         >>"$update_script"