I'm trying to do an alfred workflow that toggles my bluetooth connection.
STATUS=$(/usr/local/bin/blueutil status)
if [ $STATUS == "on" ]
then
/usr/local/bin/blueutil off
echo "off"
else
/usr/local/bin/blueutil on
echo "on"
fi
what am I doing wrong here?
It doesn't do anything.
/usr/local/bin/blueutil status
produce?