We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c551b6 commit 74b428eCopy full SHA for 74b428e
overrides/path/node.bat
@@ -17,8 +17,11 @@ REM Reset PATH, so its visible to node & subprocesses
17
set PATH=%ORIGINALPATH%
18
19
REM Check if our config is already inside NODE_OPTIONS, if so then we don't actually
20
-REM need to do anything:
21
-echo "%NODE_OPTIONS%" | findstr /C:"%HTTP_TOOLKIT_OVERRIDE_PATH%" >nul 2>&1
+REM need to do anything.
+REM NODE_OPTIONS includes forward slash paths even on Windows for some reason, so
22
+REM check for that instead.
23
+set "OVERRIDE_PATH_POSIX=%HTTP_TOOLKIT_OVERRIDE_PATH:\=/%"
24
+echo "%NODE_OPTIONS%" | findstr /C:"%OVERRIDE_PATH_POSIX%" >nul 2>&1
25
if %errorlevel% equ 0 (
26
"%REAL_NODE%" %*
27
) else (
0 commit comments