mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-11 08:29:16 +00:00
fix realpath
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
10
tests.sh
10
tests.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user