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:
parent
1b8cfffe78
commit
e65cc77f31
|
|
@ -13,7 +13,7 @@ function runOSX() {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PLAYWRIGHT="$DYLIB_PATH/Playwright.app/Contents/MacOS/Playwright"
|
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() {
|
function runLinux() {
|
||||||
|
|
@ -47,7 +47,7 @@ function runLinux() {
|
||||||
echo "Cannot find a MiniBrowser.app in neither location" 1>&2
|
echo "Cannot find a MiniBrowser.app in neither location" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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)"
|
SCRIPT_PATH="$(cd "$(dirname "$0")" ; pwd -P)"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue