Skip to content

Commit

Permalink
fix false message
Browse files Browse the repository at this point in the history
  • Loading branch information
ook37 committed Jan 11, 2024
1 parent 8f7365e commit 805f112
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rhino-docker-builder
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,11 @@ function test_image {
}

if ((pull_upstream == 1)); then
pull_image \
&& test_image \
|| echo "${BYellow}Version ${BPurple}${imgver}${BYellow} does not exist in the registry.${NC}"
if pull_image; then
test_image
else
echo "${BYellow}Version ${BPurple}${imgver}${BYellow} does not exist in the registry.${NC}"
fi
elif ((build_mode == 1)); then
echo "${BYellow}Dockerfile built at${NC} ${BPurple}${built_dock}${BYellow}. Building${NC} ${BPurple}${built_img}${BYellow}...${NC}"
build_image \
Expand Down

0 comments on commit 805f112

Please sign in to comment.