Skip to content

Commit

Permalink
kamel: Cherry-pick PR sonic-net#13412 for build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecmd committed Apr 30, 2023
1 parent 8bce25b commit b4f4bda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/run_with_retry
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

run_with_retry(){
[ "$SONIC_BUILD_RETRY_COUNT" -gt 0 ] || SONIC_BUILD_RETRY_COUNT=0
# set default value and change invalid param input to 0
(( SONIC_BUILD_RETRY_COUNT > 0 )) || SONIC_BUILD_RETRY_COUNT=0
(( SONIC_BUILD_RETRY_INTERVAL > 0 )) || SONIC_BUILD_RETRY_INTERVAL=600
[[ "$*" == "" ]] && { echo "run_with_retry: input command can't be empty." 1>&2;exit 1; }
for ((i=0; i<=$SONIC_BUILD_RETRY_COUNT; i++))
do
Expand Down

0 comments on commit b4f4bda

Please sign in to comment.