pull/30/head
deadc0de6 1 year ago
parent 933f6efd2d
commit 0740626ef8

@ -10,7 +10,7 @@ rl="readlink -f"
if ! ${rl} "${0}" >/dev/null 2>&1; then
rl="realpath"
if ! hash ${rl}; then
if ! command -v ${rl}; then
echo "\"${rl}\" not found !" && exit 1
fi
fi
@ -23,7 +23,7 @@ cd "${prev}"
# coverage
#export PYTHONPATH=".:${PYTHONPATH}"
bin="python3 -m catcli.catcli"
if hash coverage 2>/dev/null; then
if command -v coverage 2>/dev/null; then
bin="coverage run -p --source=catcli -m catcli.catcli"
#bin="coverage run -p --source=${prev}/catcli -m catcli.catcli"
fi

@ -76,7 +76,7 @@ done
# check shells
echo "[+] shellcheck"
if ! which shellcheck >/dev/null 2>&1; then
if ! command -v shellcheck >/dev/null 2>&1; then
echo "Install shellcheck"
exit 1
fi

Loading…
Cancel
Save