From 675bbc84db0d9309a149ed0f797bfb9c7aea9de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Sat, 4 Jul 2015 00:05:13 +0200 Subject: [PATCH] shellcheck MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- helper_lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper_lib.sh b/helper_lib.sh index 12276e2..7577816 100644 --- a/helper_lib.sh +++ b/helper_lib.sh @@ -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 }