From d0784034e58d838e50e4fab67dddabcfc9427149 Mon Sep 17 00:00:00 2001 From: kre Date: Sun, 23 Sep 2018 23:12:21 +0000 Subject: [PATCH] Convert to POSIX specified usage of test (even though it would probably have never been an issue here, it is trivial..., and one of the two uses that needed changing was (and still is) commented out anyway). --- etc/weekly | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/weekly b/etc/weekly index 215133419fe3..41108ea9ebbc 100644 --- a/etc/weekly +++ b/etc/weekly @@ -1,6 +1,6 @@ #!/bin/sh - # -# $NetBSD: weekly,v 1.31 2015/11/28 14:20:32 darcy Exp $ +# $NetBSD: weekly,v 1.32 2018/09/23 23:12:21 kre Exp $ # from: @(#)weekly 8.2 (Berkeley) 1/2/94 # @@ -44,8 +44,8 @@ TMP=weekly.$$ # see if /usr/src exists and is local # before looking there for checked-out files -#if [ -d /usr/src -a \ -# -n "$(find -f /usr/src ! -fstype local -prune -or -type d -print -prune)" ]; +#if [ -d /usr/src ] && +# [ -n "$(find -f /usr/src ! -fstype local -prune -or -type d -print -prune)" ]; #then # echo "" # echo "Looking for checked out files:" @@ -81,7 +81,7 @@ fi if checkyesno rebuild_mandb; then echo "" - if [ -f /etc/man.conf -a -x /usr/sbin/makemandb ]; then + if [ -f /etc/man.conf ] && [ -x /usr/sbin/makemandb ]; then echo "Rebuilding man page index:" (umask 022; nice -n 5 /usr/sbin/makemandb -f -Q) else