Skip to content

Commit

Permalink
get latest tag using ls-remote (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
ipitio authored Mar 5, 2024
1 parent a7c04b5 commit 0b20bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advanced/Scripts/speedtestmod/mod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b20bc5

Please sign in to comment.