mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
shellcheck
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
10ecf0282c
commit
675bbc84db
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ contains() {
|
|||
get_command_line_args() {
|
||||
PROC="$1"
|
||||
|
||||
for PID in `pgrep -x -o $PROC`
|
||||
for PID in $(pgrep -x -o "$PROC")
|
||||
do
|
||||
cat /proc/$PID/cmdline | tr "\0" " "
|
||||
tr "\0" " " < /proc/"$PID"/cmdline
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue