aboutsummaryrefslogtreecommitdiff
path: root/net/mwan3/files
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-07-14 11:47:15 +0200
committerFlorian Eckert <fe@dev.tdt.de>2020-07-15 10:21:54 +0200
commitc0fdfaa17490f5e67bc24a326f10af1c7d0201cf (patch)
tree130393673030395630a51c99ef429c1ef4d37ea8 /net/mwan3/files
parent644d9a25df0f352ff93646b50d5305b9837f4371 (diff)
mwan3: fix shellcheck warning SC2166
Replace -o boolean check with ||. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'net/mwan3/files')
-rw-r--r--net/mwan3/files/lib/mwan3/mwan3.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mwan3/files/lib/mwan3/mwan3.sh b/net/mwan3/files/lib/mwan3/mwan3.sh
index 3c4f25cc4..6c8e50080 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)):'"')" ] && \