fixed whitespace problem after last patch

master
Maarten van Gompel 4 years ago
parent bcde43d369
commit 2d1180389f
  1. 10
      scripts/core/sxmo_statusbar.sh

@ -20,16 +20,16 @@ update() {
CALLSECONDS="$(echo "$NOWS" - "$CALLSTARTS" | bc)" CALLSECONDS="$(echo "$NOWS" - "$CALLSTARTS" | bc)"
CALLINFO="${CALLSECONDS}s" CALLINFO="${CALLSECONDS}s"
fi fi
# symbol if wireguard/vpn is connected # symbol if wireguard/vpn is connected
VPN="" VPN=""
VPNDEVICE="$(nmcli con show | grep vpn | awk '{ print $4 }')" VPNDEVICE="$(nmcli con show | grep vpn | awk '{ print $4 }')"
WGDEVICE="$(nmcli con show | grep wireguard | awk '{ print $4 }')" WGDEVICE="$(nmcli con show | grep wireguard | awk '{ print $4 }')"
if [ -n "$VPNDEVICE" ] && [ "$VPNDEVICE" != "--" ]; then if [ -n "$VPNDEVICE" ] && [ "$VPNDEVICE" != "--" ]; then
VPN="" VPN=""
elif [ -n "$WGDEVICE" ] && [ "$WGDEVICE" != "--" ]; then elif [ -n "$WGDEVICE" ] && [ "$WGDEVICE" != "--" ]; then
VPN="" VPN=""
fi fi
# W symbol if wireless is connect # W symbol if wireless is connect
WIRELESS="" WIRELESS=""

Loading…
Cancel
Save