Remove dependency on realpath

Realpath and readlink -f don't exist on MacOS
This commit is contained in:
Joost Diepenmaat 2019-10-21 21:32:07 +02:00
parent 59a305a6c6
commit 8d3644e7d8
No known key found for this signature in database
GPG Key ID: C945FE6EED8A098C
1 changed files with 1 additions and 6 deletions

View File

@ -1,12 +1,7 @@
#!/bin/sh
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
# Where the script is executed
CURRENT_PATH="$(dirname "$(realpath "$0")")"
CURRENT_PATH="$(dirname "$0")"
# Where to download the file
OUTPUT_PATH="${CURRENT_PATH}/plantuml.jar"