From 4035e4ac5e2fec78a7db4348efa9f5fe27bb4b86 Mon Sep 17 00:00:00 2001 From: David Byrne Date: Wed, 18 Jan 2023 11:19:47 -0700 Subject: [PATCH] Fix install.cmd PATH bug If the PATH environment variable has parentheses, `(echo PATH=%PATH%)` will fail, but the parentheses don't seem to be needed. --- bin/install.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install.cmd b/bin/install.cmd index f927770..ea9d9ca 100644 --- a/bin/install.cmd +++ b/bin/install.cmd @@ -5,7 +5,7 @@ set NVM_SYMLINK=C:\Program Files\nodejs setx /M NVM_HOME "%NVM_HOME%" setx /M NVM_SYMLINK "%NVM_SYMLINK%" -(echo PATH=%PATH%) > %NVM_HOME%\PATH.txt +echo PATH=%PATH% > %NVM_HOME%\PATH.txt for /f "skip=2 tokens=2,*" %%A in ('reg query "HKLM\System\CurrentControlSet\Control\Session Manager\Environment" /v Path 2^>nul') do ( setx /M PATH "%%B;%%NVM_HOME%%;%%NVM_SYMLINK%%"