Use readlink as alternative to realpath
This commit is contained in:
parent
acb367e1b5
commit
331766966e
7
build.sh
7
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
|
||||
|
|
Loading…
Reference in New Issue