diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-14 13:23:00 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-14 13:23:00 +0200 |
commit | e911f822cb60d46719bccd5918760c1f8a2aa93a (patch) | |
tree | b74883b0ee6bd10c2e95078ea7453c47e01b91f9 | |
parent | d24e39270fce7113b43f53622f359bff10989aa1 (diff) | |
download | jenkins.debian.net-e911f822cb60d46719bccd5918760c1f8a2aa93a.tar.xz |
reproducible: break loop once update was successful
-rwxr-xr-x | bin/reproducible_maintenance.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index f687d620..e917dd3f 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -65,7 +65,7 @@ for s in $SUITES ; do /bin/sleep $(echo "scale=1 ; ($(shuf -i 1-600 -n 1)/10)+60" | bc ) echo "$(date -u) - Retrying to update the $s/$ARCH schroot." elif [ $RESULT -eq 0 ] ; then - continue + break fi done if [ $RESULT -eq 1 ] ; then @@ -89,7 +89,7 @@ for s in $SUITES ; do /bin/sleep $(echo "scale=1 ; ($(shuf -i 1-600 -n 1)/10)+60" | bc ) echo "$(date -u) - Retrying to update pbuilder for $s/$ARCH." elif [ $RESULT -eq 0 ] ; then - continue + break fi done if [ $RESULT -eq 1 ] ; then |