diff options
Diffstat (limited to 'install.bat')
-rw-r--r-- | install.bat | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/install.bat b/install.bat index 52d21355..ffde28db 100644 --- a/install.bat +++ b/install.bat | |||
@@ -729,7 +729,8 @@ IF NOT "%LUA_PATH_5_3%"=="" ( | |||
729 | ) | 729 | ) |
730 | SET "PATH=$BINDIR;%PATH%" | 730 | SET "PATH=$BINDIR;%PATH%" |
731 | "$LUA_BINDIR\$LUA_INTERPRETER" "$BINDIR\]]..c..[[.lua" %* | 731 | "$LUA_BINDIR\$LUA_INTERPRETER" "$BINDIR\]]..c..[[.lua" %* |
732 | IF NOT "%ERRORLEVEL%"=="2" GOTO EXITLR | 732 | SET EXITCODE=%ERRORLEVEL% |
733 | IF NOT "%EXITCODE%"=="2" GOTO EXITLR | ||
733 | 734 | ||
734 | REM Permission denied error, try and auto elevate... | 735 | REM Permission denied error, try and auto elevate... |
735 | REM already an admin? (checking to prevent loops) | 736 | REM already an admin? (checking to prevent loops) |
@@ -758,7 +759,7 @@ ECHO Now retrying as a priviledged user... | |||
758 | PowerShell -Command (New-Object -com 'Shell.Application').ShellExecute('%TMPFILE%', '', '', 'runas') | 759 | PowerShell -Command (New-Object -com 'Shell.Application').ShellExecute('%TMPFILE%', '', '', 'runas') |
759 | 760 | ||
760 | :EXITLR | 761 | :EXITLR |
761 | ENDLOCAL | 762 | exit /b %EXITCODE% |
762 | ]]) | 763 | ]]) |
763 | f:close() | 764 | f:close() |
764 | print(S"Created LuaRocks command: $BINDIR\\"..c..".bat") | 765 | print(S"Created LuaRocks command: $BINDIR\\"..c..".bat") |