Skip to content

fix(bin): resolve shellcheck warnings in bin scripts - #30

Merged
icco merged 4 commits into
mainfrom
fix/shellcheck-bin
Oct 22, 2026
Merged

icco merged 4 commits into
mainfrom
fix/shellcheck-bin

Conversation

@icco

@icco icco commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Why

Fixes shellcheck findings in bin/ and moves brewup, daily, dbr, git-adopt, set_ip, and screenshots from zsh to bash so shellcheck covers them. clean.sh (uses **) stays zsh with an inline SC1071 disable.

CI shellcheck now lints only shell shebangs and fails on findings (find -exec \; swallowed them), and adds zsh -n for the zsh scripts. Includes the unpushed suitup HFP to logo.dev commit from local main.

Risks

set_ip now creates the domain dir before cd, and brewup runs its dotfiles step in a subshell instead of cd -.

icco and others added 4 commits October 22, 2026 22:53
Quote expansions in gifme, kubectl-ssh, and suitup, loop over project roots in suitup, and disable SC1071 so zsh scripts stop erroring in the LSP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
.shellcheckrc is not found when an LSP lints via stdin from another directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Switch brewup, daily, dbr, git-adopt, set_ip, and screenshots to bash so shellcheck covers them, fix the findings, and syntax check the remaining zsh scripts with zsh -n in CI. CI now only lints shell files and fails on findings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@icco
icco marked this pull request as ready for review October 22, 2026 23:01
@icco
icco requested a balanced review from Copilot October 22, 2026 23:01
@icco icco self-assigned this Oct 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused shell-script and CI changes have no identified blocking correctness or compatibility issues.

No open issues 🎉

What changed in this PR

This PR addresses ShellCheck warnings in the repository’s utility scripts and strengthens shell validation in CI.

Changes:

  • Converts six scripts from zsh to Bash and improves argument quoting and directory-change handling.
  • Consolidates suitup directory traversal and replaces ~/HFP/ with ~/logo.dev/.
  • Makes CI’s bin/ ShellCheck step fail on findings and adds zsh syntax checks.
File Description
bin/​suitup Quotes paths, consolidates traversal, and updates the project directory.
bin/​set_ip Switches to Bash and creates the domain directory before entering it.
bin/​screenshots Switches the interpreter to Bash.
bin/​kubectl-ssh Quotes arguments passed to kubectl commands.
bin/​git-adopt Switches the interpreter to Bash.
bin/​gifme Preserves argument boundaries and quotes output paths.
bin/​dbr Switches to Bash and quotes Docker arguments.
bin/​daily Switches to Bash and exits if the directory change fails.
bin/​clean.sh Adds an SC1071 suppression while retaining zsh.
bin/​brewup Switches to Bash and isolates the dotfiles step in a subshell.
.github/​workflows/​ci.yml Filters shell scripts, propagates ShellCheck failures, and adds zsh syntax checks.

Review effort: Balanced

@icco
icco merged commit d432d8d into main Oct 22, 2026
6 checks passed
@icco
icco deleted the fix/shellcheck-bin branch October 22, 2026 23:04
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.

2 participants