Only connect to VPN if not connected
This commit is contained in:
parent
bc6076b6b6
commit
c9b568ba65
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue