1
0
mirror of https://github.com/djohnlewis/stackdump synced 2025-04-10 19:53:27 +00:00

Fixed a minor bug where if the incorrect version of Python was specified in PYTHON_CMD, no error message was printed and the script just aborted.

This commit is contained in:
Samuel Lai 2012-08-07 18:51:45 +10:00
parent 6013a706d7
commit e38a6e6d0d

@ -47,7 +47,8 @@ then
PYTHONPATH=$SCRIPT_DIR/python/packages:$SCRIPT_DIR/python/src:$PYTHONPATH PYTHONPATH=$SCRIPT_DIR/python/packages:$SCRIPT_DIR/python/src:$PYTHONPATH
env PYTHONPATH=$PYTHONPATH $PYTHON_CMD "$@" env PYTHONPATH=$PYTHONPATH $PYTHON_CMD "$@"
exit $? exit $?
else fi
fi
# if we get here, it means the right version of Python was not found
echo 'No suitable version of Python was found. Python 2.5 or later is required.' echo 'No suitable version of Python was found. Python 2.5 or later is required.'
fi
fi