mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
Merge pull request #368 from konstruktoid/revertgrep
revert grep thought fail
This commit is contained in:
commit
f791eb8a70
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ check_4_9() {
|
||||||
add_images=""
|
add_images=""
|
||||||
for img in $images; do
|
for img in $images; do
|
||||||
if docker history --format "{{ .CreatedBy }}" --no-trunc "$img" | \
|
if docker history --format "{{ .CreatedBy }}" --no-trunc "$img" | \
|
||||||
sed '$d' | grep -q 'ADD.*in /\s$'; then
|
sed '$d' | grep -q 'ADD'; then
|
||||||
if [ $fail -eq 0 ]; then
|
if [ $fail -eq 0 ]; then
|
||||||
fail=1
|
fail=1
|
||||||
info "$check_4_9"
|
info "$check_4_9"
|
||||||
|
|
Loading…
Reference in a new issue