Loading cmake_targets/autotests/tools/git-retry.sh 0 → 100755 +18 −0 Original line number Diff line number Diff line #!/bin/bash #Simple script to retry git clone in case of failure REALGIT=/usr/bin/git RETRIES=10 DELAY=10 COUNT=1 while [ $COUNT -lt $RETRIES ]; do $REALGIT $* if [ $? -eq 0 ]; then RETRIES=0 break fi let COUNT=$COUNT+1 sleep $DELAY done Loading
cmake_targets/autotests/tools/git-retry.sh 0 → 100755 +18 −0 Original line number Diff line number Diff line #!/bin/bash #Simple script to retry git clone in case of failure REALGIT=/usr/bin/git RETRIES=10 DELAY=10 COUNT=1 while [ $COUNT -lt $RETRIES ]; do $REALGIT $* if [ $? -eq 0 ]; then RETRIES=0 break fi let COUNT=$COUNT+1 sleep $DELAY done