Skip to content

chore: add make check-shell for the shell gate - #34

Merged
Robobc merged 1 commit into
mainfrom
chore/make-check-shell
Aug 22, 2026
Merged

chore: add make check-shell for the shell gate#34
Robobc merged 1 commit into
mainfrom
chore/make-check-shell

Conversation

@Robobc

@Robobc Robobc commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

What

Follow-up to #33. The shell gate now runs in CI, but running it locally still meant knowing that scripts/check-*.sh need bash 4+ and that macOS /bin/bash is 3.2 — so in practice it meant typing /opt/homebrew/bin/bash scripts/check-deploy-config.sh from memory.

make check-shell wraps the same three commands CI runs, picking Homebrew's bash when present:

shellcheck --severity=warning $(git ls-files '*.sh')
scripts/check-deploy-config.sh
scripts/check-workshop-flow.sh

Overridable with make check-shell BASH=/path/to/bash.

Verified

  • make check-shell green.
  • make check-shell BASH=/bin/bash surfaces the scripts' own needs bash 4+ (brew install bash) guard rather than failing obscurely on associative arrays.

The two self-check scripts need bash 4+, so running them locally on macOS meant
knowing to type /opt/homebrew/bin/bash. Wraps the same three commands CI runs
(#33) behind one target that picks a usable bash and can be overridden.

Verified: make check-shell green; make check-shell BASH=/bin/bash surfaces the
scripts' own 'needs bash 4+' guard instead of failing obscurely.
@Robobc
Robobc merged commit bbc1a0b into main Aug 22, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant