mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-25 09:23:48 +01:00
efdb9b8f94
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.
9 lines
193 B
Bash
Executable File
9 lines
193 B
Bash
Executable File
#!/bin/sh
|
|
if python3.5 -V 2>/dev/null; then
|
|
exec python3.5 -m "sshuttle" "$@"
|
|
elif python2.7 -V 2>/dev/null; then
|
|
exec python2.7 -m "sshuttle" "$@"
|
|
else
|
|
exec python -m "sshuttle" "$@"
|
|
fi
|