From 90593698982c7d7d154e6374956c50b60a0fdba1 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Wed, 17 Sep 2025 13:24:16 +0300 Subject: [PATCH] Add check-version.sh script --- check-version.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..ea63f9e --- /dev/null +++ b/check-version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Git repository +REPO="https://git.kernel.org/pub/scm/network/wireless/iwd.git" + +# Get tag name using 'git ls-remote' +TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | tail -1 | cut -d'/' -f3) + +echo "$TAG_NAME"