diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..ab82813 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Github repository +REPO="tytso/e2fsprogs" + +# Get tag name using Github Rest API +TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/tags | jq -r '.[].name' | grep -v '-' | head -n1) + +# Trim 'v' character in TAG_NAME variable +VERSION=$(echo "$TAG_NAME" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 0782793..43420ed 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: e2fsprogs description: Filesystem utilities for use with the ext2 filesystem. Also includes support for the ext3 and ext4 filesystems -version: 1.47.2 +version: 1.47.3 url: https://e2fsprogs.sourceforge.net/ license: LGPL2,GPL2 architecture: any