summaryrefslogtreecommitdiff
path: root/scripts/parleyctl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/parleyctl')
-rwxr-xr-xscripts/parleyctl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/parleyctl b/scripts/parleyctl
index 0fda0ba..579e192 100755
--- a/scripts/parleyctl
+++ b/scripts/parleyctl
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
-root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
+script=$(readlink -f -- "${BASH_SOURCE[0]}")
+root=$(cd -- "$(dirname -- "$script")/.." && pwd)
cd "$root"
exec python -m parley.ctl "$@"