From d803afa91be94a8b98d211917d0d873185f16641 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Litza Date: Sat, 7 Nov 2015 20:55:30 +0100 Subject: [PATCH] Use readlink as alternative to realpath --- build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index dc3c0c4..dbade16 100755 --- a/build.sh +++ b/build.sh @@ -7,7 +7,12 @@ KEYFILE="$HOME/.ecdsakey" set -eu -export GLUON_SITEDIR="$(dirname "$(realpath "$0")")" +if which realpath > /dev/null; then + GLUON_SITEDIR="$(dirname "$(realpath "$0")")" +else + GLUON_SITEDIR="$(dirname "$(readlink -f "$0")")" +fi +export GLUON_SITEDIR get_GLUON_TAG() { if ! git --git-dir="${GLUON_DIR}/.git" describe --exact-match; then