From 8d3644e7d87c7583d3940417eb8e828691e0cfb9 Mon Sep 17 00:00:00 2001 From: Joost Diepenmaat Date: Mon, 21 Oct 2019 21:32:07 +0200 Subject: [PATCH] Remove dependency on realpath Realpath and readlink -f don't exist on MacOS --- bin/download-plantuml.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/download-plantuml.sh b/bin/download-plantuml.sh index ea964fa..2c01e73 100755 --- a/bin/download-plantuml.sh +++ b/bin/download-plantuml.sh @@ -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"