diff options
author | Bradley Sepos <[email protected]> | 2019-04-05 05:41:14 -0400 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2019-04-05 05:41:14 -0400 |
commit | ec773568d64ceb25792aa822e76ae9b3cc3031e5 (patch) | |
tree | 8fff021f62e90dc4f8bb5ddb22b3bd9100ecc881 /configure | |
parent | 7b035348b714f945cff1ae2940332960a8eb0f00 (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-x | configure | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 |