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:
Andrey Lushnikov 2019-11-22 15:48:25 -08:00
Родитель 26fef7bc46
Коммит 7633518272
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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