The workflow doesn't work any more as it is. There has been a change in the arguments that blueutil uses. This is a working version. I opened a pull request to fix this.
PATH=/usr/local/bin:$PATH
if [ `blueutil --power` == "0" ] ; then
blueutil --power 1
else
blueutil --power 0
fi
The workflow doesn't work any more as it is. There has been a change in the arguments that blueutil uses. This is a working version. I opened a pull request to fix this.