Sorry to bang on, but (1) previous comments don't seem editable, (2) running the aforementioned script through http://www.shellcheck.net/ identifies some potential problems.
Sorry to bang on, but (1) previous comments don't seem editable, (2) running the aforementioned script through http:// www.shellcheck. net/ identifies some potential problems.