Correctly set tag for images without minor tools

This commit is contained in:
Andrejs Cunskis 2022-05-03 14:15:31 +03:00
parent 8fff315864
commit 8b1b51a97c
No known key found for this signature in database
GPG key ID: 87CB75083F227241
2 changed files with 7 additions and 1 deletions

View file

@ -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 $@

View file

@ -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
}