Skip to content

Commit

Permalink
fix shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
shizunge committed Nov 2, 2023
1 parent 6d8f44a commit 7d1466f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docker_hub_rate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 7d1466f

Please sign in to comment.