use command -v instead of which. The latter is an alias on some envs

This commit is contained in:
2020-10-27 11:48:50 +01:00
parent 6f21595709
commit a1c55f4574

View File

@@ -35,7 +35,7 @@ source config.cfg
# Check dependencies
deperrors=''
for depend in curl; do
if ! which "$depend" >/dev/null 2>&1; then
if ! command -v "$depend" >/dev/null 2>&1; then
deperrors="$depend $deperrors"
fi
done