Files
goauto/start-server.bat

14 lines
279 B
Batchfile

@echo off
setlocal
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\start-server.ps1" %*
set "GOAUTO_EXIT_CODE=%ERRORLEVEL%"
if not "%GOAUTO_EXIT_CODE%"=="0" (
echo.
echo Startup failed. See the error above.
pause
)
exit /b %GOAUTO_EXIT_CODE%