diff --git a/build_scripts/Windows/build/env.bat b/build_scripts/Windows/build/env.bat index a99905161..c4758f0d4 100644 --- a/build_scripts/Windows/build/env.bat +++ b/build_scripts/Windows/build/env.bat @@ -25,7 +25,9 @@ set RsDeployPath=%DeployPath%\Qt-%QtVersion%-%RsBuildConfig% set RsPackPath=%DeployPath% set RsArchiveAdd= -if exist "%~dp0env-mod.bat" call "%~dp0env-mod.bat" +if not exist "%~dp0env-mod.bat" goto no_mod +call "%~dp0env-mod.bat" if errorlevel 1 exit /B %ERRORLEVEL% +:no_mod exit /B 0 \ No newline at end of file