A nice thing to do is to add on the first line
#!/bin/bash -x
This will produce some intresting output information