Skip to content

Commit

Permalink
Fix handling of empty DockerHub tags response
Browse files Browse the repository at this point in the history
  • Loading branch information
isboston committed Jan 20, 2025
1 parent 1dc548a commit bdc878b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/OneClickInstall/install-Docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ offline_check_docker_image() {

check_hub_connection() {
get_tag_from_hub ${IMAGE_NAME}
[ -z "$TAGS_RESP" ] && { echo -e "Unable to download tags from ${HUB:-hub.docker.com}.\nTry specifying another dockerhub name using -hub"; exit 1; } || true
[ -z "${TAGS_RESP[*]}" ] && { echo -e "Unable to download tags from ${HUB:-hub.docker.com}.\nTry specifying another dockerhub name using -hub"; exit 1; }
}

dependency_installation() {
Expand Down

0 comments on commit bdc878b

Please sign in to comment.