diff --git a/check-version.sh b/check-version.sh deleted file mode 100644 index f9f6160..0000000 --- a/check-version.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -# Git repository -REPO="https://git.kernel.org/pub/scm/linux/kernel/git/jberg/iw.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) - -# Get version number from tag name -VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev) - -# Trim 'v' character in VERSION variable -VERSION=$(echo "$VERSION" | tr -d 'v') - -echo "$VERSION"