Skip to content

Commit 089bf72

Browse files
require admin privilege for windows build
1 parent a14364d commit 089bf72

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build_windows.cmd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ cd /d "%~dp0"
88
:: ===========================================
99
net session >nul 2>&1
1010
if %errorlevel% neq 0 (
11-
echo Administrator privileges required. Elevating...
12-
powershell -Command "Start-Process '%~f0' -Verb runAs"
13-
exit /b
11+
echo Administrator privileges required. Exiting.
12+
exit 1 /b
1413
)
1514

1615
:: ===========================================

0 commit comments

Comments
 (0)