fix(install): tolerate whitespace in latest-tag JSON; doc env vars on pipe

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-07-12 18:00:29 -05:00
1 parent b630478985
commit 995c3cd45e
2 files changed
+7 -4

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ esac
version="${MATCHA_VERSION:-latest}"
if [ "$version" = "latest" ]; then
tag=$(fetch "$REPO_BASE/api/v1/repos/Green-Tea/matcha/releases/latest" \
| grep -o '"tag_name":"[^"]*"' | head -1 | cut -d'"' -f4)
| grep -o '"tag_name":[[:space:]]*"[^"]*"' | head -1 | cut -d'"' -f4)
[ -n "$tag" ] || err "could not resolve latest release tag"
else
tag="$version"