Skip to content

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

fix(build): respect relative path in archive.sh (#2462)

Yury Semikhatsky18aafc361faf
diff --git a/browser_patches/webkit/archive.sh b/browser_patches/webkit/archive.sh
index 0cfc276d2b..fae047b381 100755
--- a/browser_patches/webkit/archive.sh
+++ b/browser_patches/webkit/archive.sh
@@ -136,7 +136,7 @@ createZipForMac() {
ditto {./WebKitBuild/Release,$tmpdir}/WebInspectorUI.framework
ditto {./WebKitBuild/Release,$tmpdir}/WebKit.framework
ditto {./WebKitBuild/Release,$tmpdir}/WebKitLegacy.framework
- ditto {..,$tmpdir}/pw_run.sh
+ ditto {$SCRIPTS_DIR,$tmpdir}/pw_run.sh
# copy protocol
node $SCRIPTS_DIR/concat_protocol.js > $tmpdir/protocol.json
@@ -146,8 +146,7 @@ createZipForMac() {
}
trap "cd $(pwd -P)" EXIT
-
-SCRIPTS_DIR="$(dirname "$0")"
-cd $SCRIPTS_DIR
+cd "$(dirname "$0")"
+SCRIPTS_DIR="$(pwd -P)"
main "$@"