Skip to content

Fix curl installer: BSD sed doesn't support \s - #13

Merged
adamdexter merged 1 commit into
mainfrom
claude/fix-install-script
Jul 3, 2026
Merged

Fix curl installer: BSD sed doesn't support \s#13
adamdexter merged 1 commit into
mainfrom
claude/fix-install-script

Conversation

@adamdexter

Copy link
Copy Markdown
Owner

The installer's sed prefix-stripping silently failed on macOS (BSD sed treats \s as a literal s), producing a malformed download URL — every curl install failed with URL rejected: Malformed input to a URL function. grep masked the problem by tolerating \s.

Switched to POSIX [[:space:]] classes with capture-group extraction, plus a hard https:// sanity check on the parsed URL.

Verified end-to-end on macOS: downloads, mounts, and installs v1.2.1 to /Applications.

No release is triggered by this merge (install.sh is fetched from main raw, so the fix is live for users the moment it lands).

🤖 Generated with Claude Code

The install script's grep patterns matched on macOS (BSD grep tolerates
\s) but the sed prefix-stripping silently failed (BSD sed treats \s as
a literal 's'), producing 'Latest version: "tag_name": "v1.2.1' and a
malformed download URL — every curl install failed with
'URL rejected: Malformed input to a URL function'.

Use POSIX [[:space:]] classes and capture-group extraction instead,
and hard-fail with a clear message if the parsed URL isn't https://.

Verified end-to-end: the script downloads, mounts, and installs
v1.2.1 to /Applications.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@adamdexter
adamdexter merged commit ae943bb into main Jul 3, 2026
4 checks passed
@adamdexter
adamdexter deleted the claude/fix-install-script branch July 3, 2026 05:52
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