14 lines
315 B
Batchfile
14 lines
315 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set "SCRIPT_DIR=%~dp0"
|
|
|
|
where pwsh.exe >nul 2>nul
|
|
if %ERRORLEVEL% EQU 0 (
|
|
pwsh.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%build-html.ps1"
|
|
) else (
|
|
powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%build-html.ps1"
|
|
)
|
|
|
|
exit /b %ERRORLEVEL%
|