devops: do not use "which" in devops scripts
The POSIX way of checking for command presence is "command -v". This is also supported in MINGW.
This commit is contained in:
parent
26fef7bc46
commit
7633518272
|
|
@ -23,7 +23,7 @@ if [[ (-z $AZ_ACCOUNT_KEY) || (-z $AZ_ACCOUNT_NAME) ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if ! which az >/dev/null; then
|
||||
if ! command -v az >/dev/null; then
|
||||
echo "ERROR: az is not found in PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue