summaryrefslogtreecommitdiffstats
path: root/Sshuttle VPN.app/Contents/Resources/sshuttle/sshuttle
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@gmail.com>2011-05-03 14:22:54 -0700
committerAvery Pennarun <apenwarr@gmail.com>2011-05-03 14:22:54 -0700
commit5b57de24041a4c184197fa369859dcaf95c1bdf4 (patch)
treea79da8556439e87d91c5a4038641534c8889495b /Sshuttle VPN.app/Contents/Resources/sshuttle/sshuttle
parentcde9521825e3d6ea020e854f7e38f4b2ec595638 (diff)
MacOS precompiled app package for sshuttle-0.53dist/macos
Diffstat (limited to 'Sshuttle VPN.app/Contents/Resources/sshuttle/sshuttle')
-rwxr-xr-xSshuttle VPN.app/Contents/Resources/sshuttle/sshuttle7
1 files changed, 6 insertions, 1 deletions
diff --git a/Sshuttle VPN.app/Contents/Resources/sshuttle/sshuttle b/Sshuttle VPN.app/Contents/Resources/sshuttle/sshuttle
index d832198..2d234d5 100755
--- a/Sshuttle VPN.app/Contents/Resources/sshuttle/sshuttle
+++ b/Sshuttle VPN.app/Contents/Resources/sshuttle/sshuttle
@@ -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