mirror of
https://github.com/djohnlewis/stackdump
synced 2025-04-07 10:13: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:
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
|
|
||||||
echo 'No suitable version of Python was found. Python 2.5 or later is required.'
|
|
||||||
fi
|
fi
|
||||||
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.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user