Skip to content

Commit e65cc77

Browse files
Eric Heatonaslushnikov
authored andcommitted
fix(pw_run): Allow running from paths with spaces (#674)
This script currently breaks if the project folder contains any spaces in the paths. The above fix takes care of that.
1 parent 1b8cfff commit e65cc77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser_patches/webkit/pw_run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function runOSX() {
1313
exit 1
1414
fi
1515
PLAYWRIGHT="$DYLIB_PATH/Playwright.app/Contents/MacOS/Playwright"
16-
DYLD_FRAMEWORK_PATH=$DYLIB_PATH DYLD_LIBRARY_PATH=$DYLIB_PATH $PLAYWRIGHT "$@"
16+
DYLD_FRAMEWORK_PATH="$DYLIB_PATH" DYLD_LIBRARY_PATH="$DYLIB_PATH" "$PLAYWRIGHT" "$@"
1717
}
1818

1919
function runLinux() {
@@ -47,7 +47,7 @@ function runLinux() {
4747
echo "Cannot find a MiniBrowser.app in neither location" 1>&2
4848
exit 1
4949
fi
50-
GIO_MODULE_DIR=$GIO_DIR LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LD_PATH $MINIBROWSER "$@"
50+
GIO_MODULE_DIR="$GIO_DIR" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LD_PATH" "$MINIBROWSER" "$@"
5151
}
5252

5353
SCRIPT_PATH="$(cd "$(dirname "$0")" ; pwd -P)"

0 commit comments

Comments
 (0)