fix: parse version from DMG URL only once in install.sh#40
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.../v0.3.2/Spool-0.3.2-arm64.dmg), sogrep -o '[0-9]*\.[0-9]*\.[0-9]*'matched both occurrences andVERSIONbecame a two-line string.Downloading Spool 0.3.2\n0.3.2...andSpool 0.3.2\n0.3.2 installed to ....head -1to take only the first match.Test plan
curl -fsSL https://spool.pro/install.sh | bashafter deploy and confirm version prints on a single line