Skip to content

Commit

Permalink
Merge pull request #2 from tnorthcutt/patch-1
Browse files Browse the repository at this point in the history
Fix release version fetching
  • Loading branch information
mpociot authored Jan 14, 2025
2 parents 99fccda + ae32d67 commit f460018
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 @@ -48,7 +48,7 @@ error() {
}

# Fetch the latest release tag from GitHub API
LATEST_RELEASE=$(curl -s $REPO_URL | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
LATEST_RELEASE=$(curl -s $REPO_URL | grep -o '"tag_name": *"[^"]*"' | sed 's/.*": *"\([^"]*\)".*/\1/')

echo ""
info "Latest release: $LATEST_RELEASE"
Expand Down

0 comments on commit f460018

Please sign in to comment.