Skip to content

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

devops: fix check_cdn.sh to be PWD-independent

Andrey Lushnikove3a8c2d03340
diff --git a/browser_patches/tools/check_cdn.sh b/browser_patches/tools/check_cdn.sh
index 8fcac42d59..c61d130313 100755
--- a/browser_patches/tools/check_cdn.sh
+++ b/browser_patches/tools/check_cdn.sh
@@ -15,6 +15,9 @@ if [[ $# == 0 ]]; then
exit 1
fi
+trap "cd $(pwd -P)" EXIT
+cd "$(dirname "$0")"
+
HOST="https://playwrightaccount.blob.core.windows.net/builds"
FFOX_REVISION=$(cat ../firefox/BUILD_NUMBER)
@@ -50,9 +53,6 @@ GRN=$'\e[1;32m'
YEL=$'\e[1;33m'
END=$'\e[0m'
-trap "cd $(pwd -P)" EXIT
-cd "$(dirname "$0")"
-
REVISION=""
ARCHIVES=""
ALIASES=""