Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit b2afb62

Browse files
committed
ISSUE 60: Added revised method of matching docker images.
1 parent a373150 commit b2afb62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ show_docker_image ()
2020
NAME_PARTS[1]='latest'
2121
fi
2222

23-
docker images | grep -e "^${NAME_PARTS[0]}[ ]\{1,\}${NAME_PARTS[1]}"
23+
docker images | awk -v FS='[ ]+' \
24+
-v pattern="^${NAME_PARTS[0]}[ ]+${NAME_PARTS[1]} " \
25+
'$0 ~ pattern { print $0; }'
2426
}
2527

2628
echo "Building ${DOCKER_IMAGE_REPOSITORY_NAME}"

0 commit comments

Comments
 (0)