Skip to content

Commit

Permalink
test/system: Silence SC2004
Browse files Browse the repository at this point in the history
Otherwise https://www.shellcheck.net/ would complain
  Line 110:
  for ((i = ${num_of_retries}; i > 0; i--)); do
            ^---------------^ SC2004 (style): $/${} is unnecessary on
                              arithmetic variables.

See: https://www.shellcheck.net/wiki/SC2004

#1347
  • Loading branch information
debarshiray committed Aug 11, 2023
1 parent 41349f4 commit a055e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/system/libs/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function _pull_and_cache_distro_image() {
assert_success
fi

for ((i = ${num_of_retries}; i > 0; i--)); do
for ((i = num_of_retries; i > 0; i--)); do
run $SKOPEO copy --dest-compress docker://${image} dir:${IMAGE_CACHE_DIR}/${image_archive}

if [ "$status" -eq 0 ]; then
Expand Down

0 comments on commit a055e78

Please sign in to comment.