Relevant Linear issue here.
This diff adds ShellCheck to the CI, a static analysis tool for shell scripts that provides warnings and errors.
We install ShellCheck and also set globstar so we can use ** to recursively match all .sh files in the repository. These files are then evaluated by ShellCheck.
Thank you to @atul for your help on this!