diff --git a/scripts/core/sxmo_statusbar.sh b/scripts/core/sxmo_statusbar.sh index d5bd0e8..ae62a9d 100755 --- a/scripts/core/sxmo_statusbar.sh +++ b/scripts/core/sxmo_statusbar.sh @@ -20,16 +20,16 @@ update() { CALLSECONDS="$(echo "$NOWS" - "$CALLSTARTS" | bc)" CALLINFO="${CALLSECONDS}s" fi - + # symbol if wireguard/vpn is connected VPN="" VPNDEVICE="$(nmcli con show | grep vpn | awk '{ print $4 }')" WGDEVICE="$(nmcli con show | grep wireguard | awk '{ print $4 }')" - if [ -n "$VPNDEVICE" ] && [ "$VPNDEVICE" != "--" ]; then - VPN="" + if [ -n "$VPNDEVICE" ] && [ "$VPNDEVICE" != "--" ]; then + VPN="" elif [ -n "$WGDEVICE" ] && [ "$WGDEVICE" != "--" ]; then - VPN="" - fi + VPN="" + fi # W symbol if wireless is connect WIRELESS=""