Commit 94ea0a3b authored by vieira's avatar vieira Committed by Brian May

nested if should be and

parent 9b7ce281
#!/usr/bin/env sh
set -e
set -ex
export PYTHONPATH="$(dirname $0):$PYTHONPATH"
python_best_version() {
if [ -x "$(command -v python3)" ]; then
if python3 -c "import sys; sys.exit(not sys.version_info > (3, 5))"; then
if [ -x "$(command -v python3)" ] &&
python3 -c "import sys; sys.exit(not sys.version_info > (3, 5))"; then
exec python3 "$@"
fi
elif [ -x "$(command -v python2.7)" ]; then
exec python2.7 "$@"
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment