mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-22 16:03:57 +01:00
8636378870
(Modified slightly by apenwarr)
13 lines
248 B
Bash
Executable File
13 lines
248 B
Bash
Executable File
#!/bin/sh
|
|
EXE=$0
|
|
for i in 1 2 3 4 5 6 7 8 9 10; do
|
|
[ -L "$EXE" ] || break
|
|
EXE=$(readlink "$EXE")
|
|
done
|
|
DIR=$(dirname "$EXE")
|
|
if python2 -V 2>/dev/null; then
|
|
exec python2 "$DIR/main.py" python2 "$@"
|
|
else
|
|
exec python "$DIR/main.py" python "$@"
|
|
fi
|