Added " guards to if not exists

The reason why I added this is a just-in-case due to the nature that cmd explodes when something isn't set properly... it can start executing code that shouldn't be obtained.

I also fixed a minor formatting error
This commit is contained in:
Cody Tilkins 2019-01-16 11:39:34 -05:00 committed by GitHub
parent e3dd1533f7
commit 1771cea5a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ rem // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
if not defined vs140comntools (
echo "Visual Studio 2015 doesn't appear to be installed properly. Quitting."
goto quit
) else (
) else (
call "%vs140comntools%\vsvars32.bat" x86_amd64
)
@ -39,12 +39,12 @@ if not exist %PPSSPP_ROOT%\%RELEASEX86% (
)
call msbuild PPSSPP.sln /t:Clean %DBG_PPSSPP% /m
call msbuild PPSSPP.sln /t:Build %DBG_PPSSPP% /m
if not exist %PPSSPP_ROOT%\%DEBUGX86% (
if not exist "%PPSSPP_ROOT%\%DEBUGX86%" (
echo Debug build failed.
goto Quit
)
if not exist %RELEASE_DIR%\\. (
if not exist "%RELEASE_DIR%\\." (
mkdir %RELEASE_DIR%
) else (
rmdir /S /Q %RELEASE_DIR%