Add shellcheck jobs to CI pipeline
According to the GitLab shell scripting guide, there should be shell check jobs running as part of the pipeline when shell scripts are used.
This MR adds the recommended checking jobs, and corrects any errors to ensure the jobs pass.
This was recommended in a separate MR comment.
Edited by Cameron Swords