Skip to content

Commit f460018

Browse files
authored
Merge pull request #2 from tnorthcutt/patch-1
Fix release version fetching
2 parents 99fccda + ae32d67 commit f460018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ error() {
4848
}
4949

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

5353
echo ""
5454
info "Latest release: $LATEST_RELEASE"

0 commit comments

Comments
 (0)