This script runs fine it is just a matter of how you run it.
download here:http://comax.fr/yamas/bt5/yamas.sh
chmod +x yamas.sh
here is the trick do not run like this
./yamas.sh
that will try to make the script run with sh instead of bash
instead invoke it this way
sudo bash ./yamash.sh
or if you install it run like this
bash yamas
Thanks for the share :)