ran scripts through shellcheck just for kicks