Merge pull request #367 from konstruktoid/ISSUE362c

accept only if ADD in / #362
This commit is contained in:
Thomas Sjögren 2019-03-19 13:55:10 +00:00 committed by GitHub
commit 2e6b7ec653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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