1
0
mirror of https://github.com/djohnlewis/stackdump synced 2024-12-04 23:17:37 +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

View File

@ -47,7 +47,8 @@ then
PYTHONPATH=$SCRIPT_DIR/python/packages:$SCRIPT_DIR/python/src:$PYTHONPATH
env PYTHONPATH=$PYTHONPATH $PYTHON_CMD "$@"
exit $?
else
echo 'No suitable version of Python was found. Python 2.5 or later is required.'
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.'