#!/bin/bash set -e TAGS=$((skopeo list-tags docker://gitea.phadric.de/andreas/sambaa || echo '{"Tags":[]}' )| jq '["alatest","latest"] - .Tags') #echo $TAGS | jq '"Tag not found: "+ .[]' echo $TAGS | jq '.==[]'