From 8b1b51a97c0d4e855804fc484f90f1b488d5a2e5 Mon Sep 17 00:00:00 2001 From: Andrejs Cunskis Date: Tue, 3 May 2022 14:15:31 +0300 Subject: [PATCH] Correctly set tag for images without minor tools --- scripts/custom-docker-build | 1 + scripts/lib/custom-docker.sh | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/custom-docker-build b/scripts/custom-docker-build index f52436d..a4ef11e 100755 --- a/scripts/custom-docker-build +++ b/scripts/custom-docker-build @@ -344,6 +344,7 @@ function build_custom_if_needed() { printf "\t%s" "$docker_command" eval $docker_command printf "\n\nSUCCESS - Successfully built:\n\t%s" "$full_image_name" + echo "" } build_custom_if_needed $@ diff --git a/scripts/lib/custom-docker.sh b/scripts/lib/custom-docker.sh index df92c12..505f42a 100644 --- a/scripts/lib/custom-docker.sh +++ b/scripts/lib/custom-docker.sh @@ -25,5 +25,10 @@ function get_image_tag() { tag="${tag}-${tool,,}-${!tool}" fi done - echo "${tag:1}" + + if [[ -n "$tag" ]]; then + echo "${tag:1}" + else + echo "latest" + fi }