imorove bash using http://www.shellcheck.net/