Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: do not use "which" in devops scripts

Andrey Lushnikov763351827238
diff --git a/browser_patches/tools/cronjob.sh b/browser_patches/tools/cronjob.sh
index 287d7c7e67..743cd91c86 100755
--- a/browser_patches/tools/cronjob.sh
+++ b/browser_patches/tools/cronjob.sh
@@ -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