Skip to content

Commit

Permalink
Merge pull request #243 from junkblocker/patch-1
Browse files Browse the repository at this point in the history
Fix release tag detection
  • Loading branch information
michaelb committed Jul 29, 2023
2 parents 1f698c5 + 07e571f commit 9195e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cargo_build() {
}

get_latest_release() {
curl --silent "https://api.github.com/repos/michaelb/sniprun/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
curl --silent "https://api.github.com/repos/michaelb/sniprun/releases/latest" | LC_ALL=C tr -d "\n" | sed -e 's|^.*\("tag_name".*\)|\1|' | cut -d'"' -f4 # Pluck JSON value
}

# download the sniprun binary (of the specified version) from Releases
Expand Down

0 comments on commit 9195e73

Please sign in to comment.