mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
Merge pull request #293 from mpritter76/master
Minor fix to ensure exclude only works against container name
This commit is contained in:
commit
0c00cc0336
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ main () {
|
|||
containers=$(docker ps | sed '1d' | awk '{print $NF}')
|
||||
else
|
||||
pattern=$(echo "$exclude" | sed 's/,/|/g')
|
||||
containers=$(docker ps | sed '1d' | grep -Ev "$pattern" | awk '{print $NF}')
|
||||
containers=$(docker ps | sed '1d' | awk '{print $NF}' | grep -Ev "$pattern" )
|
||||
fi
|
||||
# If there is a container with label docker_bench_security, memorize it:
|
||||
benchcont="nil"
|
||||
|
|
Loading…
Reference in a new issue