Avoid using #!/bin/bash. #!/bin/sh is standard, #!/bin/bash is not, and I don't see any reason why we would absolutely need bash.