mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +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
@@ -130,7 +130,7 @@ valid_subnet_any() {
|
||||
local validip6=$( valid_subnet6 $subnet )
|
||||
|
||||
|
||||
if [ "$validip4" = "ok" -o "$validip6" = "ok" ] ; then
|
||||
if [ "$validip4" = "ok" ] || [ "$validip6" = "ok" ] ; then
|
||||
echo "ok"
|
||||
else
|
||||
echo "not"
|
||||
|
||||
Reference in New Issue
Block a user