fix: dotup parses on macOS bash 3.2; stop applying bootstrap.sh

- dotup expand_deps(): bash 3.2 (macOS /bin/sh) cannot parse a case
  pattern inside $( ... ) unless the pattern opens with "(", so the whole
  script failed with a syntax error at line 107 before doing anything.
  Both patterns now carry the leading paren, which POSIX allows and dash
  and newer bash ignore. .tests/test.sh had the same construct (fzf
  binding check) and gets the same fix.
- .chezmoiignore: bootstrap.sh is the curl-fetched installer, not a
  dotfile; without the entry it landed as ~/bootstrap.sh.

Verified: /bin/sh -n and dash -n clean on every shell script in the repo;
on macOS, toggling agents/codex pulls in core/node and toggling
gpu/container-toolkit pulls in the docker group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FbsgpRAN9ukbXzWt2Zdwz
This commit is contained in:
benandClaude Opus 5.5 committed 2026-11-19 22:01:19 -05:00
1 parent 6be7896231
commit 2428c5ceb0
3 files changed
+7 -3

No files matched your search

+4
View File
@@ -11,6 +11,10 @@
# Repo documentation, not a dotfile. Without this it lands as ~/README.md.
README.md
# The bare-machine installer. It is fetched and run once by curl before
# chezmoi exists; it is not a dotfile. Without this it lands as ~/bootstrap.sh.
bootstrap.sh
# chezmoi's own config directory. Never manage the thing that configures the
# manager.
.config/chezmoi