start_local.bat 473 Bytes
@echo off
setlocal

set "ROOT_DIR=%~dp0"
set "POWERSHELL_EXE=%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe"

if not exist "%POWERSHELL_EXE%" (
    set "POWERSHELL_EXE=powershell.exe"
)

"%POWERSHELL_EXE%" -ExecutionPolicy Bypass -NoProfile -File "%ROOT_DIR%scripts\dev\start_local_stack.ps1" %*
set "EXIT_CODE=%ERRORLEVEL%"

if not "%EXIT_CODE%"=="0" (
    echo.
    echo BettaFish local startup failed. Review the log above.
    pause
)

exit /b %EXIT_CODE%