[-] Disable network display when network is not detected

This commit is contained in:
Hykilpikonna 2022-09-20 11:44:17 -04:00
parent 9e001c530f
commit 1ba7b339c9
No known key found for this signature in database
GPG key ID: 256CD01A41D7FA26

View file

@ -3223,9 +3223,7 @@ get_network() {
fi
fi
done < <(sort -rn <<<"$networks" | uniq -c)
if [ -z "$network" ]; then
network="None"
else
if [ -n "$network" ]; then
network="${network%; }"
fi
}