Files
sbc/check-version.sh
2025-08-22 13:56:17 +03:00

10 lines
243 B
Bash

#!/bin/bash
# Git repository
REPO="git://git.kernel.org/pub/scm/bluetooth/sbc.git"
# Get tag name using 'git ls-remote'
VERSION=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | tail -1 | cut -d'/' -f3)
echo "$VERSION"