mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 06:36:31 +00:00
changed robocopy return code
This commit is contained in:
+6
-10
@@ -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%
|
||||
)
|
||||
)
|
||||
|
||||
echo Robocopy succeeded with code %RC%.
|
||||
popd
|
||||
exit /b 0
|
||||
Reference in New Issue
Block a user