Dereference symlink for sshuttle launch script

(Modified slightly by apenwarr)
This commit is contained in:
kaizoku 2011-04-09 23:51:15 -07:00 committed by Avery Pennarun
parent f5eed4c809
commit 8636378870

View File

@ -1,5 +1,10 @@
#!/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
exec python2 "$DIR/main.py" python2 "$@"
else