summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2022-03-17 12:37:24 -0400
committerDave Wallace <dwallacelf@gmail.com>2022-03-17 12:37:24 -0400
commitc703e278a477c7ad9238afcdf489a421b12597af (patch)
treed217347e6672e70f42d6ea74df7790408660de9b /extras
parent980983f3e41b74b64e2c7c2c66653513272e6fcd (diff)
extras/bash: fix loop termination in packagecloud_attic_cleanup.sh
Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: I612d04e876edf255ea91e6580ca7e2f17831d78f
Diffstat (limited to 'extras')
-rwxr-xr-xextras/bash/packagecloud_attic_cleanup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/bash/packagecloud_attic_cleanup.sh b/extras/bash/packagecloud_attic_cleanup.sh
index 6312510af..a9fc81130 100755
--- a/extras/bash/packagecloud_attic_cleanup.sh
+++ b/extras/bash/packagecloud_attic_cleanup.sh
@@ -16,7 +16,7 @@ get_more_packages() {
}
get_more_packages
-while [ -n "$(cat $packages_json)" ] ; do
+while [ "$(cat $packages_json)" != "[]" ] ; do
for pkg in $(cat $packages_json | jq '.[].destroy_url' | xargs) ; do
# shellcheck disable=SC2086
echo "Deleting $(basename $pkg)"