We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb13b53 commit d3ae943Copy full SHA for d3ae943
scripts/run_with_retry
@@ -1,7 +1,9 @@
1
#!/bin/bash
2
3
run_with_retry(){
4
- [ "$SONIC_BUILD_RETRY_COUNT" -gt 0 ] || SONIC_BUILD_RETRY_COUNT=0
+ # set default value and change invalid param input to 0
5
+ (( SONIC_BUILD_RETRY_COUNT > 0 )) || SONIC_BUILD_RETRY_COUNT=0
6
+ (( SONIC_BUILD_RETRY_INTERVAL > 0 )) || SONIC_BUILD_RETRY_INTERVAL=600
7
[[ "$*" == "" ]] && { echo "run_with_retry: input command can't be empty." 1>&2;exit 1; }
8
for ((i=0; i<=$SONIC_BUILD_RETRY_COUNT; i++))
9
do
0 commit comments