mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-05-09 18:44:53 +02:00
Dereference symlink for sshuttle launch script
(Modified slightly by apenwarr)
This commit is contained in:
parent
f5eed4c809
commit
8636378870
7
sshuttle
7
sshuttle
@ -1,5 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
DIR=$(dirname "$0")
|
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
|
if python2 -V 2>/dev/null; then
|
||||||
exec python2 "$DIR/main.py" python2 "$@"
|
exec python2 "$DIR/main.py" python2 "$@"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user