Stop using the obsolete test(1) -o operator, use sh || instead.

Prefer sh ! over test's ! (though that one is not completely obsolete).
This commit is contained in:
kre 2023-12-25 08:38:32 +00:00
parent b151f12f8e
commit 31fcb5661e
1 changed files with 4 additions and 4 deletions

View File

@ -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