File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ set maxRetries=3
66:RUN
77%*
88set LastErrorLevel = %ERRORLEVEL%
9- IF %LastErrorLevel% == 0 GOTO :EOF
9+ if %LastErrorLevel% == 0 goto :EOF
1010set /a retryNumber = %retryNumber%+ 1
11- IF %reTryNumber% == %maxRetries% (GOTO : FAILED)
11+ if %reTryNumber% == %maxRetries% (goto FAILED)
1212
1313:RETRY
1414set /a retryNumberDisp = %retryNumber%+ 1
1515@ echo Command " %* " failed with exit code %LastErrorLevel% . Retrying %retryNumberDisp% of %maxRetries%
16- GOTO : RUN
16+ goto RUN
1717
18- : FAILED
19- @ echo Sorry, we tried running command for %maxRetries% times and all attempts were unsuccessful!
20- EXIT /B %LastErrorLevel%
18+ :FAILED
19+ @ echo Sorry, we tried running the command for %maxRetries% times and all attempts were unsuccessful!
20+ exit /B %LastErrorLevel%
You can’t perform that action at this time.
0 commit comments