changed robocopy return code

This commit is contained in:
dzaitsev
2025-05-07 16:12:06 +03:00
parent 41b96e2ce5
commit 8d9fe62c53
+13
View File
@@ -8,5 +8,18 @@ mkdir dist-azaion
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 (
echo Robocopy failed with code %RC%.
popd
exit /b %RC%
)