Work around a bash evaluation error
This commit is contained in:
parent
6343b48893
commit
9211d8b3db
@ -430,7 +430,8 @@ iwconfig_scan() {
|
||||
eval a=\$QUALITY_${i}
|
||||
eval b=\$QUALITY_${k}
|
||||
local u=${k}
|
||||
[ -n "${a}" -a -n "${b}" -a "${a}" -lt "${b}" ] && u=${i}
|
||||
# We need to split this into two tests, otherwise bash errors
|
||||
[ -n "${a}" -a -n "${b}" ] && [ "${a}" -lt "${b}" ] && u=${i}
|
||||
unset MAC_${u} SSID_${u} CHAN_${u} QUALITY_${u} ENC_${u}
|
||||
fi
|
||||
k=$((${k} + 1))
|
||||
|
Loading…
Reference in New Issue
Block a user