Skip to content

Commit

Permalink
Dereference symlink for sshuttle launch script
Browse files Browse the repository at this point in the history
(Modified slightly by apenwarr)
  • Loading branch information
kaizoku authored and apenwarr committed Apr 25, 2011
1 parent f5eed4c commit 8636378
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sshuttle
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8636378

Please sign in to comment.