From 1470a5a93fc7e0d143ade92a41f5180c53f536e6 Mon Sep 17 00:00:00 2001 From: bharathappali Date: Wed, 17 Feb 2021 13:18:31 +0530 Subject: [PATCH] Removing the loop as only single tag is getting passed Signed-off-by: bharathappali --- build_latest.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build_latest.sh b/build_latest.sh index 101ffb5f..8b00e81d 100755 --- a/build_latest.sh +++ b/build_latest.sh @@ -217,10 +217,7 @@ function build_image() { btype=$1; shift; local local_tags=("$@") # copy arguments to local array - for i in "${!local_tags[@]}" - do - tags="${tags} -t ${repo}:${tag}" - done + tags=" -t ${repo}:${tag}" auto_space_line=" " image_name="${repo}:${tag}"