mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
update 5.7 exec_check to new style
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
e29a886254
commit
787f4325b2
1 changed files with 2 additions and 2 deletions
|
@ -172,10 +172,10 @@ else
|
|||
|
||||
fail=0
|
||||
for c in $containers; do
|
||||
docker exec "$c" ps -el 2>/dev/null
|
||||
exec_check=$(docker exec "$c" ps -el 2>/dev/null)
|
||||
if [ $? -eq 255 ]; then
|
||||
warn "$check_5_7"
|
||||
warn " * Docker exec failed: $c"
|
||||
warn " * Docker exec fails: $c"
|
||||
fail=1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue