1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-11 08:29:16 +00:00

fix realpath

This commit is contained in:
deadc0de6
2022-03-12 15:04:45 +01:00
committed by deadc0de
parent 8c1c4d6bde
commit 814b19c604
2 changed files with 19 additions and 2 deletions

View File

@@ -15,7 +15,16 @@ up()
} }
# pivot # pivot
cur=$(dirname "$(readlink -f "${0}")") rl="readlink -f"
if ! ${rl} "${0}" >/dev/null 2>&1; then
rl="realpath"
if ! hash ${rl}; then
echo "\"${rl}\" not found!" && exit 1
fi
fi
# cur
cur=`dirname $(${rl} "${0}")`
opwd=`pwd` opwd=`pwd`
pkgfile="PKGBUILD" pkgfile="PKGBUILD"
cd ${cur} cd ${cur}

View File

@@ -54,7 +54,15 @@ ${nosebin} --version
export DOTDROP_FORCE_NODEBUG=yes export DOTDROP_FORCE_NODEBUG=yes
# coverage file location # coverage file location
cur=`dirname $(readlink -f "${0}")` rl="readlink -f"
if ! ${rl} "${0}" >/dev/null 2>&1; then
rl="realpath"
if ! hash ${rl}; then
echo "\"${rl}\" not found!" && exit 1
fi
fi
cur=`dirname $(${rl} "${0}")`
workers=${DOTDROP_WORKERS} workers=${DOTDROP_WORKERS}
if [ ! -z ${workers} ]; then if [ ! -z ${workers} ]; then