The update to the build script makes it so that the entire script exits when a failure is encountered (and returns with that exit code).
Now I can run shellcheck on the bash :)