mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 11:16:30 +00:00
changed robocopy return code
This commit is contained in:
+5
-9
@@ -10,16 +10,12 @@ echo Copying shared libs
|
|||||||
robocopy "C:\\share" "dist-dlls" "*"
|
robocopy "C:\\share" "dist-dlls" "*"
|
||||||
set RC=%ERRORLEVEL%
|
set RC=%ERRORLEVEL%
|
||||||
|
|
||||||
if %RC% EQU 1 (
|
if %RC% GEQ 8 (
|
||||||
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%.
|
echo Robocopy failed with code %RC%.
|
||||||
popd
|
popd
|
||||||
exit /b %RC%
|
exit /b %RC%
|
||||||
)
|
)
|
||||||
|
|
||||||
|
echo Robocopy succeeded with code %RC%.
|
||||||
|
popd
|
||||||
|
exit /b 0
|
||||||
Reference in New Issue
Block a user