-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall-webui.cmd
More file actions
29 lines (22 loc) · 614 Bytes
/
install-webui.cmd
File metadata and controls
29 lines (22 loc) · 614 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
setlocal EnableExtensions
set "ROOT=%~dp0"
set "PS1=%ROOT%install-webui.ps1"
if not exist "%PS1%" (
echo Error: missing "%PS1%".>&2
exit /b 1
)
where pwsh >nul 2>nul
if not errorlevel 1 goto :run_pwsh
where powershell >nul 2>nul
if not errorlevel 1 goto :run_powershell
echo Error: neither pwsh nor powershell is available on PATH.>&2
exit /b 1
:run_pwsh
pwsh -NoProfile -ExecutionPolicy Bypass -File "%PS1%" %*
set "CODEX_EXIT=%ERRORLEVEL%"
exit /b %CODEX_EXIT%
:run_powershell
powershell -NoProfile -ExecutionPolicy Bypass -File "%PS1%" %*
set "CODEX_EXIT=%ERRORLEVEL%"
exit /b %CODEX_EXIT%