diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..60cf60f --- /dev/null +++ b/check-version.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +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/} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index e4218ee..0b7bcf2 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: dialog description: Ncurses based dialog box creator for shell scripts -version: 1.3-20240619 +version: 1.3-20250817 url: https://invisible-island.net/dialog/ license: LGPL2.1 architecture: any