summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2014-10-31 09:04:09 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2014-10-31 09:04:09 +0000
commit7ac5e5d1d5172e3dffffa2e62ed2218713e734ec (patch)
treeb6a8381cbf4db85b9501ea047230a0cb4fce2746
parentd16a265253213b1f66be94507753c9987073c9bb (diff)
Useless use of sed(1).
ok swartze@
-rw-r--r--usr.sbin/rcctl/rcctl.sh4
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
}