#!/bin/bash

expressValue=$(expressvpn status | grep Connected 2>&1 > /dev/null; echo $?)

if [[ "$expressValue" -ne 0 ]]; then
echo "ExpressVPN not connected"
elif [[ "$expressValue" -eq 0 ]]; then
echo "ExpressVPN connected"
else
echo "Could not determine ExpressVPN status"
fi