Files
nvidia-utils/check-version.sh
2026-09-25 19:52:33 +03:00

10 lines
254 B
Bash

#!/bin/bash
# Git repository
REPO="https://github.com/NVIDIA/open-gpu-kernel-modules.git"
# Get tag name using 'git ls-remote'
TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | cut -d'/' -f3 | tail -n1 )
echo "$TAG_NAME"