Fix IVPN status script.

This commit is contained in:
the_4n0nym0u53 2021-12-20 00:55:55 +01:00
parent 83b9a13f9e
commit ae7045c12c
No known key found for this signature in database
GPG key ID: 35EE09F5481049BB

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
STATUS=`ivpn status | awk '{print "\\\n"$0}' | head -n -4` STATUS=`ivpn status | awk '{print "\\\n"$0}' | head -n -1`
TOOLTIP=`echo -E ${STATUS} | cut -c 3-` TOOLTIP=`echo -E ${STATUS} | cut -c 3-`
CLASS=`echo ${STATUS} | grep 'VPN' | awk '{print $3}' | tr [:upper:] [:lower:]` CLASS=`echo ${STATUS} | grep 'VPN' | awk '{print $3}' | tr [:upper:] [:lower:]`
TEXT="" TEXT=""