1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 14:31:46 +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

@@ -54,7 +54,15 @@ ${nosebin} --version
export DOTDROP_FORCE_NODEBUG=yes
# 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}
if [ ! -z ${workers} ]; then