sonnyhuynh / alfred2-toggle-bluetooth

Alfred 2 Toggle Bluetooth Workflow
4 stars 1 forks source link

Bash script doesn't work. Incorrect arguments for blueutil #2

Closed edjw closed 6 years ago

edjw commented 6 years ago

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
sonnyhuynh commented 6 years ago

Yes thank you!