From ec773568d64ceb25792aa822e76ae9b3cc3031e5 Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Fri, 5 Apr 2019 05:41:14 -0400 Subject: 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. --- configure | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'configure') 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 -- cgit v1.2.3