Skip to content

Commit

Permalink
fix script (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
freeznet authored Sep 21, 2023
1 parent 1ad971f commit 430d353
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/publish-rhel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ publish_the_image()
return 1
fi
else
local IMAGE_RELEASED=$(get_image published "${RHEL_PROJECT_ID}" "${VERSION}" "${RHEL_API_KEY}")
local IMAGE_RELEASED_EXISTS=$(echo $IMAGE_RELEASED | jq -r '.total')
if [[ $IMAGE_RELEASED_EXISTS != "0" ]]; then
echo "Image you are trying to publish is already published."
return 0
fi
echo "Image you are trying to publish does not exist."
return 1
fi
Expand Down

0 comments on commit 430d353

Please sign in to comment.