fix: expect unquoted npde.exe path (#21307)
* It is more common to set env variable value without quotes on Windows (see the bug) * Use defined to check for string presence, it will work nicely with strings that contain whitespaces https://github.com/microsoft/playwright-java/issues/1213
This commit is contained in:
Родитель
60e5a93832
Коммит
f8100bbb25
|
@ -1,6 +1,4 @@
|
|||
@echo off
|
||||
setlocal
|
||||
if not defined PLAYWRIGHT_NODEJS_PATH (
|
||||
set PLAYWRIGHT_NODEJS_PATH="%~dp0\node.exe"
|
||||
)
|
||||
""%PLAYWRIGHT_NODEJS_PATH%"" "%~dp0\package\lib\cli\cli.js" %*
|
||||
if not defined PLAYWRIGHT_NODEJS_PATH set PLAYWRIGHT_NODEJS_PATH=%~dp0node.exe
|
||||
"%PLAYWRIGHT_NODEJS_PATH%" "%~dp0package\lib\cli\cli.js" %*
|
Загрузка…
Ссылка в новой задаче