Merge pull request #56 from konstruktoid/shellcheck

shellcheck
This commit is contained in:
Thomas Sjögren 2015-07-04 00:07:23 +02:00
commit c02b1f5da9

View file

@ -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
}