asd
This commit is contained in:
7
check.sh
7
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
|
||||
|
||||
Reference in New Issue
Block a user