From 4263f0379de33be8ea8581b39c2a37172c1d0cd2 Mon Sep 17 00:00:00 2001 From: cinco euzebio Date: Sun, 1 Mar 2026 19:59:12 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20handle=20space=20after=20?= =?UTF-8?q?colon=20in=20GitHub=20API=20JSON=20tag=5Fname=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 +++++ Cargo.toml | 2 +- install.sh | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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