From f0fdedcfe4d4e0efc6b359a6d5eddea8c23216f7 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 27 Feb 2026 13:00:21 +0200 Subject: [PATCH] Update check-version.sh script --- check-version.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/check-version.sh b/check-version.sh index 60cf60f..4f8462d 100644 --- a/check-version.sh +++ b/check-version.sh @@ -3,12 +3,6 @@ URL="https://invisible-island.net/archives/dialog/" # Get version number from tag name -VERSION=$(curl -s -L "$URL" | grep -o -E 'dialog-[0-9].[0-9]-[0-9]{1,}.tgz' | uniq | tail -n1) - -# Trim prefix -VERSION=${VERSION//dialog-/} - -# Trim suffix -VERSION=${VERSION//.tgz/} +VERSION=$(curl -s -L "$URL" | grep -o -E '[0-9]\.[0-9]-[0-9]{1,}' | tail -n1) echo "$VERSION"