diff options
author | dougb <dougb@FreeBSD.org> | 2002-02-25 04:52:56 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2002-02-25 04:52:56 +0000 |
commit | d39f25f69c95bfebfbf478b910a0cfb6d69e24da (patch) | |
tree | 0668450ff75b82dfb7b50e1e3b4cf28792f3ea9f | |
parent | d3a0922fcf5eb8152ff5230959dfcf4344e2ae4b (diff) | |
download | FreeBSD-src-d39f25f69c95bfebfbf478b910a0cfb6d69e24da.zip FreeBSD-src-d39f25f69c95bfebfbf478b910a0cfb6d69e24da.tar.gz |
Improve grep'ing for variables in make.conf and rc.conf*.
Thanks to cjc for the idea.
-rwxr-xr-x | usr.sbin/mergemaster/mergemaster.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/mergemaster/mergemaster.sh b/usr.sbin/mergemaster/mergemaster.sh index 8366b22..7816a6b 100755 --- a/usr.sbin/mergemaster/mergemaster.sh +++ b/usr.sbin/mergemaster/mergemaster.sh @@ -956,8 +956,8 @@ case "${COMP_CONFS}" in for RC_CONF_VAR in `grep -i ^[a-z] ${DESTDIR}${CONF_FILE} | cut -d '=' -f 1`; do echo '' - grep ^${RC_CONF_VAR} ${DESTDIR}${CONF_FILE} - grep ^${RC_CONF_VAR} ${DESTDIR}/etc/defaults/rc.conf || + grep -w ^${RC_CONF_VAR} ${DESTDIR}${CONF_FILE} + grep -w ^${RC_CONF_VAR} ${DESTDIR}/etc/defaults/rc.conf || echo ' * No default variable with this name' done fi @@ -979,8 +979,8 @@ case "${PRE_WORLD}" in for MAKE_VAR in `grep -i ^[a-z] /etc/make.conf | cut -d '=' -f 1`; do echo '' - grep ^${MAKE_VAR} ${DESTDIR}/etc/make.conf - grep ^#${MAKE_VAR} ${MAKE_CONF} || + grep -w ^${MAKE_VAR} ${DESTDIR}/etc/make.conf + grep -w ^#${MAKE_VAR} ${MAKE_CONF} || echo ' * No example variable with this name' done) | ${PAGER} ;; |