Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
schutzekatze committed Jan 4, 2020
1 parent 9277b32 commit 20144ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/.config/yabar/vpn
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

mv -f /tmp/protonvpn_status_new /tmp/protonvpn_status
( protonvpn s >/tmp/protonvpn_status_new & )
status=$(cat /tmp/protonvpn_status | grep 'Status:' | sed 's~Status:[[:space:]]*~VPN: ~' | sed 's~Connected~on~' | sed 's~Disconnected~off~')
if [[ -z "$status" ]]; then
echo "VPN: off"
else
echo "$status"
fi
mv -f /tmp/protonvpn_status_new /tmp/protonvpn_status

0 comments on commit 20144ba

Please sign in to comment.