10 lines
270 B
Bash
10 lines
270 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 | grep '^580\.' | tail -n1 )
|
|
|
|
echo "$TAG_NAME"
|