My same BASH script is working in Fedora/CentOS.
But I am testing one Android eee pad transformer
.
in Android the shell is located in /system/bin/sh
not /bin/sh
like it is on most Unix-like systems. So even if you change #!/bin/bash
to #!/bin/sh
it will still not work. you'll have to use #!/system/bin/sh
Android is not a GNU/Linux distribution so you can't expect that all scripts that run on GNU/Linux to also work on Android.