diff options
Diffstat (limited to 'usr.sbin/rcctl/rcctl.sh')
-rw-r--r-- | usr.sbin/rcctl/rcctl.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh index f74fd2c6ebe..f51c237ae13 100644 --- a/usr.sbin/rcctl/rcctl.sh +++ b/usr.sbin/rcctl/rcctl.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: rcctl.sh,v 1.46 2014/10/27 21:24:26 rpe Exp $ +# $OpenBSD: rcctl.sh,v 1.47 2014/10/31 09:04:08 ajacoutot Exp $ # # Copyright (c) 2014 Antoine Jacoutot <ajacoutot@openbsd.org> # Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -132,7 +132,7 @@ svc_get_flags() [ -z "${daemon_flags}" ] && \ daemon_flags="$(svc_default_enabled_flags ${_svc})" - print -r -- "${daemon_flags}" | sed '/^$/d' + [ -n "${daemon_flags}" ] && print -r -- "${daemon_flags}" fi } |