From 52c724eac60cebe64b633bb741ab12e4b5a59c36 Mon Sep 17 00:00:00 2001 From: dzaitsev Date: Wed, 7 May 2025 16:15:02 +0300 Subject: [PATCH] changed robocopy return code --- build/init.cmd | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/build/init.cmd b/build/init.cmd index a7d1769..11e98a4 100644 --- a/build/init.cmd +++ b/build/init.cmd @@ -10,16 +10,12 @@ echo Copying shared libs robocopy "C:\\share" "dist-dlls" "*" set RC=%ERRORLEVEL% -if %RC% EQU 1 ( - echo All files copied successfully. - popd - exit /b 1 -) else if %RC% LSS 8 ( - echo Robocopy returned %RC% (acceptable non-error code), but not perfect copy. - popd - exit /b 0 -) else ( +if %RC% GEQ 8 ( echo Robocopy failed with code %RC%. popd exit /b %RC% -) \ No newline at end of file +) + +echo Robocopy succeeded with code %RC%. +popd +exit /b 0 \ No newline at end of file