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.
This commit is contained in:
Eric Heaton 2020-01-27 12:34:59 -05:00 committed by Andrey Lushnikov
parent 1b8cfffe78
commit e65cc77f31

View file

@ -13,7 +13,7 @@ function runOSX() {
exit 1
fi
PLAYWRIGHT="$DYLIB_PATH/Playwright.app/Contents/MacOS/Playwright"
DYLD_FRAMEWORK_PATH=$DYLIB_PATH DYLD_LIBRARY_PATH=$DYLIB_PATH $PLAYWRIGHT "$@"
DYLD_FRAMEWORK_PATH="$DYLIB_PATH" DYLD_LIBRARY_PATH="$DYLIB_PATH" "$PLAYWRIGHT" "$@"
}
function runLinux() {
@ -47,7 +47,7 @@ function runLinux() {
echo "Cannot find a MiniBrowser.app in neither location" 1>&2
exit 1
fi
GIO_MODULE_DIR=$GIO_DIR LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LD_PATH $MINIBROWSER "$@"
GIO_MODULE_DIR="$GIO_DIR" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LD_PATH" "$MINIBROWSER" "$@"
}
SCRIPT_PATH="$(cd "$(dirname "$0")" ; pwd -P)"