We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e3521a8 + b629c86 commit c4bce29Copy full SHA for c4bce29
hack/sync-bindata.sh
@@ -142,13 +142,21 @@ EOF_CAT
142
}
143
144
for BUNDLE in $(hack/pin-bundle-images.sh | tr "," " "); do
145
- n=0
146
- until [ "$n" -ge 5 ]; do
147
- skopeo copy "docker://$BUNDLE" dir:${EXTRACT_DIR}/tmp && break
148
- echo "Command failed. retrying ... $n/5"
149
- n=$((n+1))
150
- sleep 15
151
- done
+ (
+ set +e
+ n=0
+ RC=1
+ while :; do
+ skopeo copy "docker://$BUNDLE" dir:${EXTRACT_DIR}/tmp
+ RC=$?
152
+ if [ $RC -eq 0 -o "$n" -ge 5 ]; then
153
+ exit $RC
154
+ fi
155
+ n=$((n+1))
156
+ echo "Command failed. retrying ... $n/5"
157
+ sleep 15
158
+ done
159
+ )
160
extract_bundle "${EXTRACT_DIR}/tmp" "${OUT_DATA}/"
161
done
162
0 commit comments