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"