Use safer method to get base directory

realpath isn't available on older systems, so use a safer approach
using just very basic commands.
This commit is contained in:
Pierre Ossman 2019-06-24 15:38:52 +02:00
parent 1f717e83af
commit 6a268a09b6
1 changed files with 1 additions and 1 deletions

2
run
View File

@ -1,6 +1,6 @@
#!/usr/bin/env sh
BASE_DIR="$(dirname "$(realpath "$0")")"
BASE_DIR="$(cd $(dirname "$0"); pwd)"
cd "$BASE_DIR"