diff options
Diffstat (limited to 'scripts/lib/upstream-version.sh')
-rwxr-xr-x | scripts/lib/upstream-version.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/lib/upstream-version.sh b/scripts/lib/upstream-version.sh new file mode 100755 index 00000000..4efa42db --- /dev/null +++ b/scripts/lib/upstream-version.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-3.0-or-later +# +# return latest upstream version of Knot Resolver +set -o errexit + +REPO=https://gitlab.nic.cz/knot/knot-resolver.git + +git ls-remote --tags --refs $REPO | cut -f2- | sed -n "s#^refs/tags/v##p" | sort -V | tail -1 |