test/commit: Simplify a 'for' loop
An ascending 'for' loop is more idiomatic than its descending counterpart. https://github.com/containers/toolbox/pull/1373
This commit is contained in:
parent
5c0372e959
commit
c586cc9278
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ function _pull_and_cache_distro_image() {
|
|||
assert_success
|
||||
fi
|
||||
|
||||
for ((i = num_of_retries; i > 0; i--)); do
|
||||
for ((i = 0; i < num_of_retries; i++)); do
|
||||
run "$SKOPEO" copy --dest-compress "docker://${image}" "dir:${IMAGE_CACHE_DIR}/${image_archive}"
|
||||
|
||||
if [ "$status" -eq 0 ]; then
|
||||
|
|
Loading…
Reference in a new issue