summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2019-06-24 15:38:52 +0200
committerPierre Ossman <ossman@cendio.se>2019-06-24 15:38:52 +0200
commit6a268a09b668915d6b0e2cd2df1b5425fce1ab92 (patch)
treecc749a940454f549a28921ce2e59d60460be8f18 /run
parent1f717e83afe656a234d2bbea76a31b0f96030d24 (diff)
downloadwebsockify-6a268a09b668915d6b0e2cd2df1b5425fce1ab92.tar.gz
Use safer method to get base directory
realpath isn't available on older systems, so use a safer approach using just very basic commands.
Diffstat (limited to 'run')
-rwxr-xr-xrun2
1 files changed, 1 insertions, 1 deletions
diff --git a/run b/run
index f43f10c..3dfa63f 100755
--- a/run
+++ b/run
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
-BASE_DIR="$(dirname "$(realpath "$0")")"
+BASE_DIR="$(cd $(dirname "$0"); pwd)"
cd "$BASE_DIR"