Commit 86363788 authored by kaizoku's avatar kaizoku Committed by Avery Pennarun

Dereference symlink for sshuttle launch script

(Modified slightly by apenwarr)
parent f5eed4c8
#!/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
......
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