use command -v instead of which. The latter is an alias on some envs
This commit is contained in:
@@ -35,7 +35,7 @@ source config.cfg
|
|||||||
# Check dependencies
|
# Check dependencies
|
||||||
deperrors=''
|
deperrors=''
|
||||||
for depend in curl; do
|
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"
|
deperrors="$depend $deperrors"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user