From bfcd92da7ec527583723f18dd5f19aeff74f67aa Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Tue, 19 Nov 2019 16:58:09 -0800 Subject: [PATCH] devops: fix build scripts --- browser_patches/firefox/build.sh | 3 ++- browser_patches/webkit/build.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/browser_patches/firefox/build.sh b/browser_patches/firefox/build.sh index 93e85e92a9..eadd946aff 100755 --- a/browser_patches/firefox/build.sh +++ b/browser_patches/firefox/build.sh @@ -3,7 +3,8 @@ set -e set +x trap "cd $(pwd -P)" EXIT -cd checkout +cd "$(dirname $0)" +cd "checkout" if ! [[ $(git rev-parse --abbrev-ref HEAD) == "pwdev" ]]; then echo "ERROR: Cannot build any branch other than PWDEV" diff --git a/browser_patches/webkit/build.sh b/browser_patches/webkit/build.sh index 196cbe8213..2315846292 100755 --- a/browser_patches/webkit/build.sh +++ b/browser_patches/webkit/build.sh @@ -3,7 +3,8 @@ set -e set +x trap "cd $(pwd -P)" EXIT -cd checkout +cd "$(dirname $0)" +cd "checkout" if ! [[ $(git rev-parse --abbrev-ref HEAD) == "pwdev" ]]; then echo "ERROR: Cannot build any branch other than PWDEV"