I looked this up, but it doesn't make sense to me. The script continues and if expressvpn is not connected, it runs theLine 2: [expressvpn: unary operator expected]
command as I want it to. Is this a bug, or do I need to correct something in my script?expressvpn connect smart
Code: Select all
#!/bin/sh
if [ expressvpn status ]
then
:
else
expressvpn connect smart
fi