79208318

Date: 2024-11-20 17:21:23
Score: 2.5
Natty:
Report link

response=$(curl -s -u "${HARBOR_SWIO_USER}:${HARBOR_SWIO_PASS}" -H "Accept:application/json" "$URL")

#This line will fail echo "$response" | jq -e --arg TAG "$TAG" '.[]|select(.tags[].name==$TAG)' > /dev/null

if [ $? -eq 0 ]; then echo "Image exists" else echo "Image does not exist"

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sagar Karki