Skip to content

fix: parse version from DMG URL only once in install.sh#40

Merged
graydawnc merged 1 commit intomainfrom
fix/install-script-version-parse
Apr 7, 2026
Merged

fix: parse version from DMG URL only once in install.sh#40
graydawnc merged 1 commit intomainfrom
fix/install-script-version-parse

Conversation

@graydawnc
Copy link
Copy Markdown
Collaborator

@graydawnc graydawnc commented Apr 7, 2026

Summary

  • The release DMG URL contains the version twice (e.g. .../v0.3.2/Spool-0.3.2-arm64.dmg), so grep -o '[0-9]*\.[0-9]*\.[0-9]*' matched both occurrences and VERSION became a two-line string.
  • Result: installer printed Downloading Spool 0.3.2\n0.3.2... and Spool 0.3.2\n0.3.2 installed to ....
  • Fix: pipe through head -1 to take only the first match.

Test plan

  • Re-run curl -fsSL https://spool.pro/install.sh | bash after deploy and confirm version prints on a single line

The release DMG URL contains the version twice (once in the tag path
and once in the filename), so `grep -o` matched both and VERSION became
a two-line string, causing the installer to print "0.3.2\n0.3.2".
Pipe through `head -1` to take only the first match.
@graydawnc graydawnc merged commit 1e50b1e into main Apr 7, 2026
3 checks passed
@graydawnc graydawnc deleted the fix/install-script-version-parse branch April 7, 2026 06:22
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