diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2016-07-19 08:28:04 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2016-07-19 08:28:04 +0000 |
commit | aae5d521a5cc523ad6e0c0b16b508c07b010f457 (patch) | |
tree | 88d42d111350089f7ec6c1c80e61be9ba8a25446 /usr.sbin | |
parent | 31e71f9db26a1cc42f452df44a0b085e2eb990c3 (diff) |
In rcctl ls, skip all files with a '.' in the name, not just rc.subr;
pkg_add renames files in this way when the checksums don't match at update
or removal time. [[ ]] suggestion from guenther@ to avoid the messy "case"
that I had in my first diff. Other feedback/suggestions from halex aja
millert, ok halex@ aja@.
Diffstat (limited to 'usr.sbin')
-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 48d250bdeed..e386e1dd1b1 100644 --- a/usr.sbin/rcctl/rcctl.sh +++ b/usr.sbin/rcctl/rcctl.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: rcctl.sh,v 1.102 2016/06/19 15:00:37 ajacoutot Exp $ +# $OpenBSD: rcctl.sh,v 1.103 2016/07/19 08:28:03 sthen Exp $ # # Copyright (c) 2014, 2015 Antoine Jacoutot <ajacoutot@openbsd.org> # Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -53,7 +53,7 @@ ls_rcscripts() cd /etc/rc.d && set -- * for _s; do - [ "${_s}" = "rc.subr" ] && continue + [[ ${_s} = *.* ]] && continue [ ! -d "${_s}" ] && echo "${_s}" done } |