chery-pick(#17579): fix(driver): with CWD which contained spaces (#17593)

This PR cherry-picks the following commits:

- a5eee6d960

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Playwright Service 2022-09-26 11:40:15 -07:00 committed by GitHub
parent 5455a5a5fb
commit 6e8c2c5d8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,6 @@
@ECHO OFF @echo off
SETLOCAL setlocal
IF %PLAYWRIGHT_NODEJS_PATH%x == x SET PLAYWRIGHT_NODEJS_PATH="%~dp0\node.exe" if not defined PLAYWRIGHT_NODEJS_PATH (
"%PLAYWRIGHT_NODEJS_PATH%" "%~dp0\package\lib\cli\cli.js" %* set PLAYWRIGHT_NODEJS_PATH=%~dp0\node.exe
)
"""%PLAYWRIGHT_NODEJS_PATH%""" "%~dp0\package\lib\cli\cli.js" %*