From 2cdb0b15ee03e7c8e97df72ff3216ec6752f320f Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Tue, 23 Apr 2024 10:21:14 -0400 Subject: [PATCH] Minor: More debugging For some reason, it seems to still be possible for `get_manifest_tags()` to return non-zero despite `result_json` being an empty list. Add some more debugging to the function to help figure out why. Signed-off-by: Chris Evich --- build-push/bin/build-push.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-push/bin/build-push.sh b/build-push/bin/build-push.sh index c6d8bea..6226660 100755 --- a/build-push/bin/build-push.sh +++ b/build-push/bin/build-push.sh @@ -411,10 +411,13 @@ get_manifest_tags() { die "Error obtaining image names from '$FQIN' manifest-list search result: $result_json" fi + + dbg "Sorting fqin_names" # Don't emit an empty newline when the list is empty [[ -z "$fqin_names" ]] || \ - sort <<< "$fqin_names" + sort <<<"$fqin_names" fi + dbg "get_manifest_tags() returning successfully" } push_images() {