Using blueutil to try to connect or disconnect my headphones, when you test using the --is-connected it returns either a 0 or 1. I want to use that to either connect or disconnect the headphones, but I keep getting a "0: command not found" error.
blueutil --is-connected ac-90-85-3e-0d-04
if $? -eq 0
then
blueutil --connect ac-90-85-3e-0d-04
else
blueutil --disconnect ac-90-85-3e-0d-04
fi