]> granicus.if.org Git - handbrake/commitdiff
build: Require bash shell.
authorBradley Sepos <bradley@bradleysepos.com>
Wed, 6 Dec 2017 23:17:00 +0000 (18:17 -0500)
committerBradley Sepos <bradley@bradleysepos.com>
Wed, 6 Dec 2017 23:17:00 +0000 (18:17 -0500)
configure

index 15e8f13590ecba1fa7aedb209b9382137ebf2df0..2500e3bb74be4d2d4cd8dc37a9a920fb4bce5ebe 100755 (executable)
--- a/configure
+++ b/configure
@@ -13,13 +13,18 @@ inpath()
     return 1
 }
 
-for p in python2.7 python2.6 python2.5 python2.4 python2 python
-do
-    if ( inpath $p ); then
-        exec $p `dirname $0`/make/configure.py "$@"
-        exit 0
-    fi
-done
+if ( inpath bash ); then
+    for p in python2.7 python2.6 python2.5 python2.4 python2 python
+    do
+        if ( inpath $p ); then
+            exec $p `dirname $0`/make/configure.py "$@"
+            exit 0
+        else
+            echo "ERROR: no suitable version of python found."
+        fi
+    done
+else
+    echo "ERROR: bash shell not found."
+fi
 
-echo "ERROR: no suitable version of python found."
 exit 1