fix pre-commit and cleanup

This commit is contained in:
Kjeld Schouten
2024-10-19 15:18:02 +02:00
parent 2acb59c9dc
commit 4ab41d42f2
203 changed files with 8456 additions and 8484 deletions
+3 -3
View File
@@ -82,9 +82,9 @@ parse_command_line() {
check_existing_tag() {
local chart_name="$1"
local tag="$2"
echo "Checking if tag '$tag' exists for chart '$chart_name' on OCI..."
# Query the OCI registry for existing tags
local response
response=$(curl -s -H "Authorization: Bearer ${quay_token}" \
@@ -97,7 +97,7 @@ check_existing_tag() {
local tag_exists
tag_exists=$(echo "$response" | jq -r --arg tag "$tag" '.tags[]? | select(.name == $tag) | .name')
if [[ "$tag_exists" == "$tag" ]]; then
echo "Tag '$tag' already exists for chart '$chart_name'."
return 0