diff options
author | 2014-12-30 15:31:33 +0000 | |
---|---|---|
committer | 2014-12-30 15:31:33 +0000 | |
commit | 6689f48fdd947c73d922463d77070cf9189ad8fe (patch) | |
tree | 8d07876345b9cf31aed7ec73302e037d87903dc7 | |
parent | add_flags() does not need any action argument. (diff) | |
download | wireguard-openbsd-6689f48fdd947c73d922463d77070cf9189ad8fe.tar.xz wireguard-openbsd-6689f48fdd947c73d922463d77070cf9189ad8fe.zip |
do not print an empty order in case pkg_scripts is undefined
ok ajacoutot@
-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 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 <ajacoutot@openbsd.org> # Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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) |