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

This commit is contained in:
mxmehl committed 2020-10-27 11:48:50 +01:00
1 parent 6f21595709
commit a1c55f4574
1 file changed
+1 -1
+1 -1
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