mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-04-24 19:29:21 +02:00
nested if should be and
This commit is contained in:
parent
9b7ce2811e
commit
94ea0a3bed
7
run
7
run
@ -1,12 +1,11 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
set -e
|
set -ex
|
||||||
export PYTHONPATH="$(dirname $0):$PYTHONPATH"
|
export PYTHONPATH="$(dirname $0):$PYTHONPATH"
|
||||||
|
|
||||||
python_best_version() {
|
python_best_version() {
|
||||||
if [ -x "$(command -v python3)" ]; then
|
if [ -x "$(command -v python3)" ] &&
|
||||||
if python3 -c "import sys; sys.exit(not sys.version_info > (3, 5))"; then
|
python3 -c "import sys; sys.exit(not sys.version_info > (3, 5))"; then
|
||||||
exec python3 "$@"
|
exec python3 "$@"
|
||||||
fi
|
|
||||||
elif [ -x "$(command -v python2.7)" ]; then
|
elif [ -x "$(command -v python2.7)" ]; then
|
||||||
exec python2.7 "$@"
|
exec python2.7 "$@"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user