summaryrefslogtreecommitdiffhomepage
path: root/macosx/opentrack.sh
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/opentrack.sh')
-rwxr-xr-xmacosx/opentrack.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/macosx/opentrack.sh b/macosx/opentrack.sh
index 62ad01a5..74a911e2 100755
--- a/macosx/opentrack.sh
+++ b/macosx/opentrack.sh
@@ -1,4 +1,6 @@
#!/bin/sh
-dir="$(dirname -- "$0")"
-exec "$dir"/opentrack.bin -platformpluginpath "$dir" "$@"
+cd -- "$(dirname -- "$0")" &&
+exec ./opentrack.bin -platformpluginpath "$(pwd)" "$@"
+
+exit 1