Skip to content

Commit

Permalink
tools: fix setting path containing an ampersand
Browse files Browse the repository at this point in the history
This commit fixes an issue with the Node.js command prompt
on Windows where the PATH environment variable would not be
set correctly if the existing PATH contained an '&'.

Fixes: #4802
PR-URL: #4804
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
mscdex authored and Myles Borins committed Feb 17, 2016
1 parent 4a492cd commit da088a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/msvs/nodevars.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@echo off

rem Ensure this Node.js and npm are first in the PATH
set PATH=%APPDATA%\npm;%~dp0;%PATH%
set "PATH=%APPDATA%\npm;%~dp0;%PATH%"

setlocal enabledelayedexpansion
pushd "%~dp0"
Expand Down

0 comments on commit da088a1

Please sign in to comment.