From e3a8c2d033409e3d5f00045e33f6ca5fbf44d0b0 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 25 Nov 2019 18:14:04 -0800 Subject: [PATCH] devops: fix check_cdn.sh to be PWD-independent --- browser_patches/tools/check_cdn.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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=""