Skip to content

Commit d569a26

Browse files
bougymanclaude
andcommitted
fix(docs): guard the checksum verification example against a grep miss
A grep miss piping empty input into the checker isn't safe to skip - sha256sum -c - (the Linux equivalent) exits 0 on empty input, so a typo'd filename would silently "pass" without checking anything at all. Guard with grep -q ... && first. Also trims the accompanying footnote back down to the platform-command difference alone - the rationale belongs here in the commit message, not as an implementation essay in the Readme itself. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent db79256 commit d569a26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Readme.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ standalone executables with no Erlang/Elixir install required.
4646
----
4747
$ curl -sLO https://github.com/rubyists/linear-cli-ex/releases/latest/download/lc_macos_aarch64
4848
$ curl -sLo SHA256SUMS https://github.com/rubyists/linear-cli-ex/releases/latest/download/SHA256SUMS
49-
$ grep lc_macos_aarch64 SHA256SUMS | shasum -a 256 -c - <1>
49+
$ grep -q lc_macos_aarch64 SHA256SUMS && grep lc_macos_aarch64 SHA256SUMS | shasum -a 256 -c - <1>
5050
$ chmod +x lc_macos_aarch64
5151
$ sudo mv lc_macos_aarch64 /usr/local/bin/lc
5252
----
53-
<1> Every release also publishes a `SHA256SUMS` file alongside the binaries - verify your download matches (by its original filename, before renaming/moving it) before running it. macOS ships `shasum -a 256`, not `sha256sum` - on Linux, use `sha256sum -c -` instead.
53+
<1> Linux: `sha256sum -c -` instead of `shasum -a 256 -c -`.
5454

5555
NOTE: A Homebrew tap is planned but not yet available.
5656

0 commit comments

Comments
 (0)