From 31fcb5661e81c88549ddb8c6b96700b9732fe0ee Mon Sep 17 00:00:00 2001 From: kre Date: Mon, 25 Dec 2023 08:38:32 +0000 Subject: [PATCH] Stop using the obsolete test(1) -o operator, use sh || instead. Prefer sh ! over test's ! (though that one is not completely obsolete). --- etc/rc.d/sysdb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/rc.d/sysdb b/etc/rc.d/sysdb index 4c4b43f6d598..263fdd8a9445 100755 --- a/etc/rc.d/sysdb +++ b/etc/rc.d/sysdb @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: sysdb,v 1.25 2016/04/23 21:24:31 dholland Exp $ +# $NetBSD: sysdb,v 1.26 2023/12/25 08:38:32 kre Exp $ # # PROVIDE: sysdb @@ -40,10 +40,10 @@ check_file() local db="$2" shift 2 - if [ ! -e "$src" ]; then + if ! [ -e "$src" ]; then return fi - if [ \( ! -f "$db" \) -o \( "$src" -nt "$db" \) ]; then + if ! [ -f "$db" ] || [ "$src" -nt "$db" ]; then $echo -n "$comma${src##*/}" comma=", " "$@" @@ -81,7 +81,7 @@ build_utmp() # local i for i in "" x; do - if [ ! -f /var/run/utmp$i ]; then + if ! [ -f /var/run/utmp$i ]; then $echo -n "${comma}utmp$i" comma=", " install -c -m 664 -g utmp /dev/null /var/run/utmp$i