Commit efdb9b8f authored by vieira's avatar vieira Committed by Brian May

If 3.5 not available, try to fallback to 2.7

In situations where 2.7 is available and some unsupported 3.x is the
system's default we should probably fallback to 2.7 instead of the
default (that might be e.g. 3.4). This might fix #78.
parent 7875d1b9
#!/bin/sh #!/bin/sh
if python3.5 -V 2>/dev/null; then if python3.5 -V 2>/dev/null; then
exec python3.5 -m "sshuttle" "$@" exec python3.5 -m "sshuttle" "$@"
elif python2.7 -V 2>/dev/null; then
exec python2.7 -m "sshuttle" "$@"
else else
exec python -m "sshuttle" "$@" exec python -m "sshuttle" "$@"
fi fi
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