Update check-version.sh script

This commit is contained in:
2026-02-27 13:00:21 +02:00
parent f366f2a023
commit f0fdedcfe4
+1 -7
View File
@@ -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"