Update check-version.sh script
This commit is contained in:
+1
-7
@@ -3,12 +3,6 @@
|
|||||||
URL="https://invisible-island.net/archives/dialog/"
|
URL="https://invisible-island.net/archives/dialog/"
|
||||||
|
|
||||||
# Get version number from tag name
|
# 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)
|
VERSION=$(curl -s -L "$URL" | grep -o -E '[0-9]\.[0-9]-[0-9]{1,}' | tail -n1)
|
||||||
|
|
||||||
# Trim prefix
|
|
||||||
VERSION=${VERSION//dialog-/}
|
|
||||||
|
|
||||||
# Trim suffix
|
|
||||||
VERSION=${VERSION//.tgz/}
|
|
||||||
|
|
||||||
echo "$VERSION"
|
echo "$VERSION"
|
||||||
|
|||||||
Reference in New Issue
Block a user