Skip to content

Commit 457de26

Browse files
XhmikosRFeodorFitsner
authored andcommitted
appveyor-retry.cmd: minor cosmetic tweaks (#2686)
* lowercase commands for consistency * remove `:` from labels since it's not needed
1 parent 8f4c240 commit 457de26

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/appveyor-retry.cmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ set maxRetries=3
66
:RUN
77
%*
88
set LastErrorLevel=%ERRORLEVEL%
9-
IF %LastErrorLevel% == 0 GOTO :EOF
9+
if %LastErrorLevel% == 0 goto :EOF
1010
set /a retryNumber=%retryNumber%+1
11-
IF %reTryNumber% == %maxRetries% (GOTO :FAILED)
11+
if %reTryNumber% == %maxRetries% (goto FAILED)
1212

1313
:RETRY
1414
set /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%

0 commit comments

Comments
 (0)