Run shell scripts through shellcheck
Merge pull request #2710 from Therzok/shellcheckScripts

Run shell scripts through shellcheck