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:
parent
b151f12f8e
commit
31fcb5661e
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/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
|
# PROVIDE: sysdb
|
||||||
|
@ -40,10 +40,10 @@ check_file()
|
||||||
local db="$2"
|
local db="$2"
|
||||||
|
|
||||||
shift 2
|
shift 2
|
||||||
if [ ! -e "$src" ]; then
|
if ! [ -e "$src" ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if [ \( ! -f "$db" \) -o \( "$src" -nt "$db" \) ]; then
|
if ! [ -f "$db" ] || [ "$src" -nt "$db" ]; then
|
||||||
$echo -n "$comma${src##*/}"
|
$echo -n "$comma${src##*/}"
|
||||||
comma=", "
|
comma=", "
|
||||||
"$@"
|
"$@"
|
||||||
|
@ -81,7 +81,7 @@ build_utmp()
|
||||||
#
|
#
|
||||||
local i
|
local i
|
||||||
for i in "" x; do
|
for i in "" x; do
|
||||||
if [ ! -f /var/run/utmp$i ]; then
|
if ! [ -f /var/run/utmp$i ]; then
|
||||||
$echo -n "${comma}utmp$i"
|
$echo -n "${comma}utmp$i"
|
||||||
comma=", "
|
comma=", "
|
||||||
install -c -m 664 -g utmp /dev/null /var/run/utmp$i
|
install -c -m 664 -g utmp /dev/null /var/run/utmp$i
|
||||||
|
|
Loading…
Reference in New Issue