From 740439d352174bd0070bac77ef01abe3fb2f1d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Tue, 19 Mar 2019 14:54:38 +0100 Subject: [PATCH] accept only if ADD in / #362 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- tests/4_container_images.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/4_container_images.sh b/tests/4_container_images.sh index 0406a00..0b7c84f 100644 --- a/tests/4_container_images.sh +++ b/tests/4_container_images.sh @@ -224,8 +224,8 @@ check_4_9() { fail=0 add_images="" for img in $images; do - if docker history --format "{{ .CreatedBy }}" --no-trunc "$img" | sed '$d' |\ - grep -q 'ADD'; then + if docker history --format "{{ .CreatedBy }}" --no-trunc "$img" | \ + sed '$d' | grep -q 'ADD.*in /\s$'; then if [ $fail -eq 0 ]; then fail=1 info "$check_4_9"