diff --git a/CHANGELOG.md b/CHANGELOG.md index d6960e8..c6e4833 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [0.8.2] - 2026-03-01 + +### Fixed +- `install.sh`: grep pattern for `tag_name` now handles the space GitHub includes after the colon in JSON (`"tag_name": "x"` instead of `"tag_name":"x"`) + ## [0.8.1] - 2026-03-01 ### Fixed diff --git a/Cargo.toml b/Cargo.toml index d5c744e..fcf7e40 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tmuxido" -version = "0.8.1" +version = "0.8.2" edition = "2024" [dev-dependencies] diff --git a/install.sh b/install.sh index cecd033..4a97c9a 100644 --- a/install.sh +++ b/install.sh @@ -19,7 +19,7 @@ esac api_resp=$(curl -sSL \ -H "Accept: application/vnd.github.v3+json" \ "$API_URL/repos/$REPO/releases/latest") -tag=$(printf '%s' "$api_resp" | grep -o '"tag_name":"[^"]*"' | cut -d'"' -f4) +tag=$(printf '%s' "$api_resp" | grep -o '"tag_name": *"[^"]*"' | grep -o '"[^"]*"$' | tr -d '"') if [ -z "$tag" ]; then echo "Could not fetch latest release." >&2