diff --git a/update_rev.bat b/update_rev.bat index 0835ecfdc..1bcb210a8 100644 --- a/update_rev.bat +++ b/update_rev.bat @@ -3,10 +3,10 @@ SETLOCAL PUSHD %~dp0 -if exist "src\UpdateAssemblyInfo\bin\Release\UpdateAssemblyInfo.exe" ( - "src\UpdateAssemblyInfo\bin\Release\UpdateAssemblyInfo.exe" "src\Properties\AssemblyInfo.cs.template" "src\Properties\AssemblyInfo.cs" -) else ( - "src\UpdateAssemblyInfo\bin\Debug\UpdateAssemblyInfo.exe" "src\Properties\AssemblyInfo.cs.template" "src\Properties\AssemblyInfo.cs" +IF EXIST "src\UpdateAssemblyInfo\bin\Release\UpdateAssemblyInfo.exe" ( + "src\UpdateAssemblyInfo\bin\Release\UpdateAssemblyInfo.exe" "src\Properties\AssemblyInfo.cs.template" "src\Properties\AssemblyInfo.cs" +) ELSE ( + "src\UpdateAssemblyInfo\bin\Debug\UpdateAssemblyInfo.exe" "src\Properties\AssemblyInfo.cs.template" "src\Properties\AssemblyInfo.cs" ) IF %ERRORLEVEL% NEQ 0 GOTO SubError