From 39a8dd5defafa7750e58c006538dfa5f9e24a7e4 Mon Sep 17 00:00:00 2001 From: Alessandro Mazza <121622391+alessandromazza98@users.noreply.github.com> Date: Tue, 24 Mar 2026 12:55:29 +0100 Subject: [PATCH] fix(mac-os): tag extraction for latest release in install.sh --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index dc7a39e..d6f0e17 100755 --- a/install.sh +++ b/install.sh @@ -31,7 +31,11 @@ if [ -n "${VERSION:-}" ]; then fi else echo "Fetching latest release..." - TAG=$(curl -sSfL "$API" | grep -oP '"tag_name": "\K(.*)(?=")') + TAG=$(curl -sSfL "$API" | sed -n 's/.*"tag_name":[[:space:]]*"\([^"]*\)".*/\1/p' | head -n1) + if [ -z "$TAG" ]; then + echo "Error: could not determine latest release tag" + exit 1 + fi echo "Latest version: $TAG" fi