From: robert Date: Tue, 30 Dec 2014 15:31:33 +0000 (+0000) Subject: do not print an empty order in case pkg_scripts is undefined X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6689f48fdd947c73d922463d77070cf9189ad8fe;p=openbsd do not print an empty order in case pkg_scripts is undefined ok ajacoutot@ --- diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh index 190cd22f275..1f094d07022 100644 --- a/usr.sbin/rcctl/rcctl.sh +++ b/usr.sbin/rcctl/rcctl.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: rcctl.sh,v 1.52 2014/12/30 14:46:33 ajacoutot Exp $ +# $OpenBSD: rcctl.sh,v 1.53 2014/12/30 15:31:33 robert Exp $ # # Copyright (c) 2014 Antoine Jacoutot # Copyright (c) 2014 Ingo Schwarze @@ -371,7 +371,7 @@ case ${action} in needs_root ${action} order_pkg_scripts ${svcs} else - echo ${pkg_scripts} + [[ -z ${pkg_scripts} ]] || echo ${pkg_scripts} fi ;; status)