summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2019-04-05 05:41:14 -0400
committerBradley Sepos <[email protected]>2019-04-05 05:41:14 -0400
commitec773568d64ceb25792aa822e76ae9b3cc3031e5 (patch)
tree8fff021f62e90dc4f8bb5ddb22b3bd9100ecc881 /configure
parent7b035348b714f945cff1ae2940332960a8eb0f00 (diff)
configure: Fix logic error detecting python.
Previous version would emit an error (while continuing just fine) if the found python was not the first item in the list.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 9 insertions, 4 deletions
diff --git a/configure b/configure
index dc7c8bc01..14f08a3cb 100755
--- a/configure
+++ b/configure
@@ -14,15 +14,20 @@ inpath()
}
if ( inpath bash ); then
+ pp=""
for p in python3 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."
+ pp="$p"
+ break
fi
done
+ if [ pp != "" ]; then
+ exec $pp `dirname $0`/make/configure.py "$@"
+ exit 0
+ else
+ echo "ERROR: no suitable version of python found."
+ fi
else
echo "ERROR: bash shell not found."
fi