mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 11:06:30 +00:00
changed robocopy return code
This commit is contained in:
+14
-1
@@ -8,5 +8,18 @@ mkdir dist-azaion
|
|||||||
|
|
||||||
echo Copying shared libs
|
echo Copying shared libs
|
||||||
robocopy "C:\\share" "dist-dlls" "*"
|
robocopy "C:\\share" "dist-dlls" "*"
|
||||||
|
set RC=%ERRORLEVEL%
|
||||||
|
|
||||||
popd
|
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%
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user