11 lines
412 B
Batchfile
11 lines
412 B
Batchfile
|
|
@echo off
|
||
|
|
setlocal
|
||
|
|
set "taskPwsh=%ProgramFiles%\PowerShell\7\pwsh.exe"
|
||
|
|
if not exist "%taskPwsh%" set "taskPwsh=%USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe"
|
||
|
|
if not exist "%taskPwsh%" (
|
||
|
|
echo PowerShell 7 is required. Open a normal PowerShell 7 window.
|
||
|
|
exit /b 1
|
||
|
|
)
|
||
|
|
"%taskPwsh%" -NoProfile -File "%~dp0Backend-Local.ps1" -Action Restart
|
||
|
|
exit /b %errorlevel%
|