Only connect to VPN if not connected

This commit is contained in:
flyingscorpio@arch-desktop 2021-11-06 11:55:50 +01:00
parent bc6076b6b6
commit c9b568ba65

View file

@ -142,7 +142,9 @@ git-check-unpushed() {
hello() {
if command -v protonvpn >/dev/null 2>&1; then
sudo protonvpn c -f
if protonvpn s | grep Disconnected >/dev/null; then
sudo protonvpn c -f
fi
fi
system-update