From a73015164e1fe07e68b538e988e01978daebaf7a Mon Sep 17 00:00:00 2001 From: Andreas Rocznik Date: Fri, 8 Dec 2023 14:44:09 +0100 Subject: [PATCH] asd --- check.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/check.sh b/check.sh index 67a577a..1305701 100755 --- a/check.sh +++ b/check.sh @@ -1,11 +1,12 @@ #!/bin/bash set -e - +echo "$1" +echo "$2" TAGS=$( (skopeo list-tags $1 || echo '{"Tags":[]}' )| jq '["alatest","latest"] - .Tags') echo $TAGS | jq '"Tag not found: "+ .[]' -RESULT=$($TAGS | jq '.==[]') -if $RESULT == "true" +RESULT=$(echo $TAGS | jq '.==[]') +if "$RESULT" == "true" then echo "All images found" fi