mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-31 14:22:33 +01:00
fix return label for check 4.7
Signed-off-by: Francisco Ribeiro <blackthorne@ironik.org>
This commit is contained in:
parent
02987bbb98
commit
d8820a86ed
1 changed files with 2 additions and 2 deletions
|
@ -86,11 +86,11 @@ for img in $images; do
|
||||||
if docker history "$img" 2>/dev/null | grep -e "update" >/dev/null 2>&1; then
|
if docker history "$img" 2>/dev/null | grep -e "update" >/dev/null 2>&1; then
|
||||||
if [ $fail -eq 0 ]; then
|
if [ $fail -eq 0 ]; then
|
||||||
fail=1
|
fail=1
|
||||||
info "$check_4_7"
|
warn "$check_4_7"
|
||||||
fi
|
fi
|
||||||
imgName=$(docker inspect --format='{{.RepoTags}}' "$img" 2>/dev/null)
|
imgName=$(docker inspect --format='{{.RepoTags}}' "$img" 2>/dev/null)
|
||||||
if ! [ "$imgName" = '[]' ]; then
|
if ! [ "$imgName" = '[]' ]; then
|
||||||
info " * Update instruction found: $imgName"
|
warn " * Update instruction found: $imgName"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue