From 7d0f2cdb63b389828dc85802d5cc8e7f762db1b8 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 14 Jul 2020 11:47:15 +0200 Subject: [PATCH] mwan3: fix shellcheck warning SC2166 Replace -o boolean check with ||. Signed-off-by: Florian Eckert (cherry picked from commit c0fdfaa17490f5e67bc24a326f10af1c7d0201cf) --- net/mwan3/files/lib/mwan3/mwan3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mwan3/files/lib/mwan3/mwan3.sh b/net/mwan3/files/lib/mwan3/mwan3.sh index 3c4f25cc40..6c8e500800 100644 --- a/net/mwan3/files/lib/mwan3/mwan3.sh +++ b/net/mwan3/files/lib/mwan3/mwan3.sh @@ -1067,7 +1067,7 @@ mwan3_report_iface_status() IPT="$IPT6" fi - if [ -z "$id" -o -z "$device" ]; then + if [ -z "$id" ] || [ -z "$device" ]; then result="offline" elif [ -n "$($IP rule | awk '$1 == "'$(($id+1000)):'"')" ] && \ [ -n "$($IP rule | awk '$1 == "'$(($id+2000)):'"')" ] && \ -- 2.30.2