diff --git a/script.bat b/script.bat index 6ccdd809..3e0944b4 100644 --- a/script.bat +++ b/script.bat @@ -1,14 +1,15 @@ @echo off git submodule update --init -echo "Updating current branch and submodules" +echo Updating current branch and submodules git pull && git submodule update -echo "Generating project files" +echo Generating project files premake5 vs2022 IF %ERRORLEVEL% NEQ 0 ( PAUSE ) echo "Opening project..." -start BigBaseV2.sln \ No newline at end of file +tasklist /FI "WINDOWTITLE eq BigBaseV2 - Microsoft Visual Studio" /FI "STATUS eq running" 2>NUL | find /I /N "devenv.exe" >NUL +IF %ERRORLEVEL% NEQ 0 (start BigBaseV2.sln) ELSE (echo Visual Studio is already open, doing nothing. && PAUSE)