Skip to content

docs(usage): drop sudo from --dry-run examples (#23) - #26

Merged
twistedmelonman merged 1 commit into
mainfrom
claude/fix-usage-dryrun-sudo-20260820
Aug 20, 2026
Merged

twistedmelonman merged 1 commit into
mainfrom
claude/fix-usage-dryrun-sudo-20260820

Conversation

@twistedmelonman

Copy link
Copy Markdown
Member

What

Removes the stale sudo prefix from the --dry-run examples in install.sh's usage() help text and in CLAUDE.md.

Why

check_root() skips the root check entirely when DRY_RUN=true, so --dry-run has never required root. The README already documents this correctly, but two other places contradicted it:

  • install.sh usage()sudo ./install.sh --dry-run
  • CLAUDE.mdsudo ./install.sh --dry-run --no-fetch, directly below a comment that already read "no root needed"

A user who reads --help rather than the README would add sudo unnecessarily.

Issue #23 named only the install.sh line; the CLAUDE.md occurrence is the same defect and is fixed here too.

Verification

  • bash -n install.sh — clean
  • shellcheck --severity=warning install.sh — clean (matches CI)
  • ./install.sh --dry-run --no-fetch as non-root (uid 501) — exit 0, confirming the documented behavior

Docs/help-text only; no behavior change.

Fixes #23

https://claude.ai/code/session_01LoaHEAyN4UpWhihKbvg2rS

check_root() skips the root check when DRY_RUN=true, so --dry-run has
never needed root. The usage() help text and CLAUDE.md both still showed
`sudo ./install.sh --dry-run`, contradicting the README and the actual
behavior. A user reading --help rather than the README would add sudo
unnecessarily.

Also note "(no root needed)" in the help example, matching how the
--update-mirrors examples already annotate this.

Fixes #23

Claude-Session: https://claude.ai/code/session_01LoaHEAyN4UpWhihKbvg2rS
@claude

claude Bot commented Aug 20, 2026

Copy link
Copy Markdown

The diff updates two documentation lines removing sudo from --dry-run examples. No logic, conditions, or execution paths changed.

VERDICT: PASS

@twistedmelonman
twistedmelonman merged commit 826533e into main Aug 20, 2026
4 checks passed
@twistedmelonman
twistedmelonman deleted the claude/fix-usage-dryrun-sudo-20260820 branch August 20, 2026 21:55
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.

usage() in-script help text still shows sudo ./install.sh --dry-run despite dry-run not requiring root

1 participant