Skip to content

Commit 40dc1db

Browse files
committed
Merge branch 'pull/35'
* Merging pull request apenwarr#35.
2 parents be49fe8 + ec8ea09 commit 40dc1db

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

sshuttle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
#!/bin/sh
2-
EXE=$0
3-
for i in 1 2 3 4 5 6 7 8 9 10; do
4-
[ -L "$EXE" ] || break
5-
EXE=$(readlink "$EXE")
6-
done
7-
DIR=$(dirname "$EXE")
2+
3+
DIR="$(dirname $(readlink -f ${0}))"
4+
85
if python2 -V 2>/dev/null; then
96
exec python2 "$DIR/main.py" python2 "$@"
107
else

0 commit comments

Comments
 (0)