mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
unbound: replace obsolete test expressions
Expressions '-o', '-a', and '\( \)' within test or '[ ]' are obsolete. POSIX allows few arguments to test, so long expressions are not portable. '[ p -a q ]' can be replaced with '[ p ] && [ q ]' instead. Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
This commit is contained in:
committed by
Yousong Zhou
parent
85bc7bc4f3
commit
f1d1530f48
@@ -43,11 +43,11 @@ rootkey_update() {
|
||||
[ -z "$dnssec_age" ] && dnssec_age=9
|
||||
|
||||
|
||||
if [ "$dnssec_age" -gt 90 -o "$dnssec" -lt 1 ] ; then
|
||||
if [ "$dnssec_age" -gt 90 ] || [ "$dnssec" -lt 1 ] ; then
|
||||
# Feature disabled
|
||||
return 0
|
||||
|
||||
elif [ "$dnssec_ntp" -gt 0 -a ! -f "$UB_TIME_FILE" ] ; then
|
||||
elif [ "$dnssec_ntp" -gt 0 ] && [ ! -f "$UB_TIME_FILE" ] ; then
|
||||
# We don't have time yet
|
||||
return 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user