Skip to content

Commit b66efc9

Browse files
committed
Removed useless output from cfengine3 init script
Lack of >/dev/null in ps --help command caused useless output of ``` --cols, --columns, --width <num> ``` when running /etc/init.d/cfengine3 for any command. Ticket: ENT-13234 Changelog: title
1 parent 2ff6192 commit b66efc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/init.d/cfengine3.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fi
150150
CURRENT_PS_UID=__none__
151151
INSIDE_CONTAINER=-1
152152

153-
if ps --help 2>/dev/null | egrep -e '--cols\b' > /dev/null || ps --help output 2>/dev/null | egrep -e '--cols\b'; then
153+
if ps --help 2>/dev/null | egrep -e '--cols\b' > /dev/null || ps --help output 2>/dev/null | egrep -e '--cols\b' > /dev/null; then
154154
# There is a bug in SUSE which means that ps output will be truncated even
155155
# when piped to grep, if the terminal size is small. However using --cols
156156
# will override it. NOTE: On Suse 12 and 15, `ps` mentions `--cols` only

0 commit comments

Comments
 (0)