From 0b20bc5dd924576b6ecdbd5617041603d94191c6 Mon Sep 17 00:00:00 2001 From: ipitio <21136719+ipitio@users.noreply.github.com> Date: Tue, 5 Mar 2024 03:56:27 -0500 Subject: [PATCH] get latest tag using ls-remote (#89) --- advanced/Scripts/speedtestmod/mod.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/speedtestmod/mod.sh b/advanced/Scripts/speedtestmod/mod.sh index 379dc0e458..849e777ef4 100755 --- a/advanced/Scripts/speedtestmod/mod.sh +++ b/advanced/Scripts/speedtestmod/mod.sh @@ -30,7 +30,7 @@ setTags() { git tag -l | xargs git tag -d >/dev/null 2>&1 fi git fetch --tags -f -q - latestTag=$(git describe --tags $(git rev-list --tags --max-count=1)) + latestTag=$(git ls-remote --tags "$url" | awk -F/ '{print $3}' | grep -v '\^{}' | sort -V | tail -n1) fi if [[ "$url" != *"arevindh"* ]] && [ ! -z "$name" ]; then