artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dd2848
)
do not print an empty order in case pkg_scripts is undefined
author
robert
<robert@openbsd.org>
Tue, 30 Dec 2014 15:31:33 +0000
(15:31 +0000)
committer
robert
<robert@openbsd.org>
Tue, 30 Dec 2014 15:31:33 +0000
(15:31 +0000)
ok ajacoutot@
usr.sbin/rcctl/rcctl.sh
patch
|
blob
|
history
diff --git
a/usr.sbin/rcctl/rcctl.sh
b/usr.sbin/rcctl/rcctl.sh
index
190cd22
..
1f094d0
100644
(file)
--- a/
usr.sbin/rcctl/rcctl.sh
+++ b/
usr.sbin/rcctl/rcctl.sh
@@
-1,6
+1,6
@@
#!/bin/sh
#
-# $OpenBSD: rcctl.sh,v 1.5
2 2014/12/30 14:46:33 ajacouto
t Exp $
+# $OpenBSD: rcctl.sh,v 1.5
3 2014/12/30 15:31:33 rober
t 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)