Module Name: src Committed By: kre Date: Mon Dec 25 08:38:32 UTC 2023
Modified Files: src/etc/rc.d: sysdb Log Message: Stop using the obsolete test(1) -o operator, use sh || instead. Prefer sh ! over test's ! (though that one is not completely obsolete). To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/etc/rc.d/sysdb Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/etc/rc.d/sysdb diff -u src/etc/rc.d/sysdb:1.25 src/etc/rc.d/sysdb:1.26 --- src/etc/rc.d/sysdb:1.25 Sat Apr 23 21:24:31 2016 +++ src/etc/rc.d/sysdb Mon Dec 25 08:38:32 2023 @@ -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