From 7d1466f685a5dcac2a24d6378acadff05501b0da Mon Sep 17 00:00:00 2001 From: Shizun Ge Date: Wed, 1 Nov 2023 20:09:38 -0700 Subject: [PATCH] fix shellcheck --- src/docker_hub_rate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docker_hub_rate.sh b/src/docker_hub_rate.sh index 2806d14..c72d9b4 100755 --- a/src/docker_hub_rate.sh +++ b/src/docker_hub_rate.sh @@ -19,10 +19,10 @@ docker_hub_rate_token() { local IMAGE="${1:-ratelimitpreview/test}" local TOKEN_URL="https://auth.docker.io/token?service=registry.docker.io&scope=repository:${IMAGE}:pull" if curl --version 1>/dev/null 2>&1; then - curl -s ${TOKEN_URL} + curl -s "${TOKEN_URL}" return $? fi - wget -qO- ${TOKEN_URL} + wget -qO- "${TOKEN_URL}" } docker_hub_rate_read_rate() {