From ec69aaec162fab615ad0b1ac10d0ee4563a1f689 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Wed, 17 Sep 2025 12:56:27 +0300 Subject: [PATCH] Update package version to 1.8.11 --- check-version.sh | 12 ++++++++++++ pkg.info | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..da37457 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Git repository +REPO="https://git.netfilter.org/iptables" + +# 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) + +# 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 346b707..6f4f3ad 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: iptables description: userspace CLI program used to configure the Linux packet filtering ruleset -version: 1.8.10 +version: 1.8.11 url: https://www.netfilter.org/projects/iptables/index.html license: GPL2-only architecture: any