diff options
author | Pierre Ossman <ossman@cendio.se> | 2019-06-24 15:38:52 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2019-06-24 15:38:52 +0200 |
commit | 6a268a09b668915d6b0e2cd2df1b5425fce1ab92 (patch) | |
tree | cc749a940454f549a28921ce2e59d60460be8f18 /run | |
parent | 1f717e83afe656a234d2bbea76a31b0f96030d24 (diff) | |
download | websockify-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-x | run | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,6 +1,6 @@ #!/usr/bin/env sh -BASE_DIR="$(dirname "$(realpath "$0")")" +BASE_DIR="$(cd $(dirname "$0"); pwd)" cd "$BASE_DIR" |