checkExpress.sh 285 B

1234567891011
  1. #!/bin/bash
  2. expressValue=$(expressvpn status | grep Connected 2>&1 > /dev/null; echo $?)
  3. if [[ "$expressValue" -ne 0 ]]; then
  4. echo "ExpressVPN not connected"
  5. elif [[ "$expressValue" -eq 0 ]]; then
  6. echo "ExpressVPN connected"
  7. else
  8. echo "Could not determine ExpressVPN status"
  9. fi