mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +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() {
|
get_command_line_args() {
|
||||||
PROC="$1"
|
PROC="$1"
|
||||||
|
|
||||||
for PID in `pgrep -x -o $PROC`
|
for PID in $(pgrep -x -o "$PROC")
|
||||||
do
|
do
|
||||||
cat /proc/$PID/cmdline | tr "\0" " "
|
tr "\0" " " < /proc/"$PID"/cmdline
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue