Skip to content

Commit d3ae943

Browse files
committed
kamel: Cherry-pick PR sonic-net#13412 for build warning
sonic-net#13412
1 parent eb13b53 commit d3ae943

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/run_with_retry

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22

33
run_with_retry(){
4-
[ "$SONIC_BUILD_RETRY_COUNT" -gt 0 ] || SONIC_BUILD_RETRY_COUNT=0
4+
# 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
57
[[ "$*" == "" ]] && { echo "run_with_retry: input command can't be empty." 1>&2;exit 1; }
68
for ((i=0; i<=$SONIC_BUILD_RETRY_COUNT; i++))
79
do

0 commit comments

Comments
 (0)