Skip to content

Commit 94ea0a3

Browse files
vieirabrianmay
authored andcommitted
nested if should be and
1 parent 9b7ce28 commit 94ea0a3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

run

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/usr/bin/env sh
2-
set -e
2+
set -ex
33
export PYTHONPATH="$(dirname $0):$PYTHONPATH"
44

55
python_best_version() {
6-
if [ -x "$(command -v python3)" ]; then
7-
if python3 -c "import sys; sys.exit(not sys.version_info > (3, 5))"; then
8-
exec python3 "$@"
9-
fi
6+
if [ -x "$(command -v python3)" ] &&
7+
python3 -c "import sys; sys.exit(not sys.version_info > (3, 5))"; then
8+
exec python3 "$@"
109
elif [ -x "$(command -v python2.7)" ]; then
1110
exec python2.7 "$@"
1211
else

0 commit comments

Comments
 (0)