mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
no need for cat when grepping
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
d02a7f8c0e
commit
d964e084fc
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ fi
|
||||||
|
|
||||||
# 1.7
|
# 1.7
|
||||||
check_1_7="1.7 - Only allow trusted users to control Docker daemon"
|
check_1_7="1.7 - Only allow trusted users to control Docker daemon"
|
||||||
docker_users=`cat /etc/group | grep docker`
|
docker_users=`grep docker /etc/group`
|
||||||
info "$check_1_7"
|
info "$check_1_7"
|
||||||
for u in $docker_users; do
|
for u in $docker_users; do
|
||||||
info " * $u"
|
info " * $u"
|
||||||
|
|
Loading…
Reference in a new issue