Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4263f0379d | ||
|
|
a8f88e852c |
@@ -4,6 +4,16 @@ 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/).
|
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
|
||||||
|
- `install.sh`: removed `-f` flag from GitHub API `curl` call so HTTP error responses (rate limits, 404s) are printed instead of silently discarded; shows up to 400 bytes of the raw API response when the release tag cannot be parsed
|
||||||
|
|
||||||
## [0.8.0] - 2026-03-01
|
## [0.8.0] - 2026-03-01
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tmuxido"
|
name = "tmuxido"
|
||||||
version = "0.8.0"
|
version = "0.8.2"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|||||||
+8
-4
@@ -16,12 +16,16 @@ case "$arch" in
|
|||||||
*) echo "Unsupported architecture: $arch" >&2; exit 1 ;;
|
*) echo "Unsupported architecture: $arch" >&2; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
tag=$(curl -fsSL \
|
api_resp=$(curl -sSL \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
"$API_URL/repos/$REPO/releases/latest" \
|
"$API_URL/repos/$REPO/releases/latest")
|
||||||
| grep -o '"tag_name":"[^"]*"' | cut -d'"' -f4)
|
tag=$(printf '%s' "$api_resp" | grep -o '"tag_name": *"[^"]*"' | grep -o '"[^"]*"$' | tr -d '"')
|
||||||
|
|
||||||
[ -z "$tag" ] && { echo "Could not fetch latest release" >&2; exit 1; }
|
if [ -z "$tag" ]; then
|
||||||
|
echo "Could not fetch latest release." >&2
|
||||||
|
printf 'GitHub API response: %s\n' "$api_resp" | head -c 400 >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Installing tmuxido $tag..."
|
echo "Installing tmuxido $tag..."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user