Browse Source

mwan3: fix shellcheck warning SC2166

Replace -o boolean check with ||.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
lilik-openwrt-22.03
Florian Eckert 5 years ago
parent
commit
c0fdfaa174
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      net/mwan3/files/lib/mwan3/mwan3.sh

+ 1
- 1
net/mwan3/files/lib/mwan3/mwan3.sh View File

@ -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)):'"')" ] && \


Loading…
Cancel
Save