From 4362c39c134991a52eff8267587e7889a81043d2 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Mon, 25 Sep 2023 18:01:44 +0200 Subject: [PATCH] test/system: Silence SC2154 Otherwise https://www.shellcheck.net/ would complain: Line 343: if [ "$status" -ne 0 ]; then ^-----^ SC2154 (warning): status is referenced but not assigned. See: https://www.shellcheck.net/wiki/SC2154 https://github.com/containers/toolbox/pull/1378 --- test/system/libs/helpers.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/system/libs/helpers.bash b/test/system/libs/helpers.bash index 833303a..248ba4d 100644 --- a/test/system/libs/helpers.bash +++ b/test/system/libs/helpers.bash @@ -340,6 +340,8 @@ function pull_distro_image() { # https://github.com/containers/skopeo/issues/547 for the options for containers-storage run "$SKOPEO" copy "dir:${IMAGE_CACHE_DIR}/${image_archive}" "containers-storage:[overlay@$ROOTLESS_PODMAN_STORE_DIR+$ROOTLESS_PODMAN_STORE_DIR]${image}" + + # shellcheck disable=SC2154 if [ "$status" -ne 0 ]; then echo "Failed to load image ${image} from cache ${IMAGE_CACHE_DIR}/${image_archive}" assert_success