the script did not work on osx, not it does
Merge pull request #17 from Magnetme/bash-fix

the script did not work on osx, now it does