From 551bdf09ce0446832a740ceebe1898ca5744702d Mon Sep 17 00:00:00 2001 From: EnumDev Date: Tue, 16 Sep 2025 10:00:38 +0300 Subject: [PATCH] Add check-version.sh script --- check-version.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..a84e6e4 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Pagure repository +REPO="libaio" + +# Get tag name using Pagure Rest API +TAG_NAME=$(curl -s -L https://pagure.io/api/0/"$REPO"/git/tags | jq -r '.tags[]' | grep '^libaio-' | sort -V | tail -n1) + +# Trim prefix +VERSION=${TAG_NAME//libaio-/} + +echo "$VERSION"