Merge pull request #511 from rbuckton/patch-1

Do not elevate unless necessary
This commit is contained in:
Corey Butler
2020-03-25 13:20:46 -05:00
committed by GitHub

View File

@@ -1,5 +1,12 @@
@setlocal
@echo off
:: Try without elevation, in case %NVM_SYMLINK% is a user-owned path and the
:: machine has Windows 10 Developer Mode enabled
%*
if %ERRORLEVEL% LSS 1 goto :EOF
:: The command failed without elevation, try with elevation
set CMD=%*
set APP=%1
start wscript //nologo "%~dpn0.vbs" %*