From aeb8f14220da6b1879e20c3908450e57e3205a2b Mon Sep 17 00:00:00 2001 From: AJ Schmidt Date: Mon, 27 Nov 2023 16:15:54 -0500 Subject: [PATCH] add `--silent` flag to `curl` commands --- ci/cleanup_images.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/cleanup_images.sh b/ci/cleanup_images.sh index d2d1767..83a0604 100755 --- a/ci/cleanup_images.sh +++ b/ci/cleanup_images.sh @@ -9,11 +9,11 @@ delete_image() { local repo=$2 local tag=$3 - curl --fail-with-body -i -X DELETE \ + curl --silent --fail-with-body -i -X DELETE \ -H "Accept: application/json" \ -H "Authorization: JWT $HUB_TOKEN" \ "https://hub.docker.com/v2/repositories/$org/$repo/tags/$tag/" - + echo "Deleted image $org/$repo:$tag" } @@ -22,7 +22,7 @@ fetch_tags() { local repo=$2 local page=$3 - curl -L --fail-with-body \ + curl --silent -L --fail-with-body \ -H "Accept: application/json" \ -H "Authorization: JWT $HUB_TOKEN" \ "https://hub.docker.com/v2/namespaces/$org/repositories/$repo/tags?page=$page&page_size=100"