mirror of
https://github.com/djohnlewis/stackdump
synced 2025-12-06 07:53:28 +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:
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user