scripts: improve the "get latest curl release tag" logic

... by insiting on it matching "^curl-".
This commit is contained in:
Daniel Stenberg 2020-08-27 14:25:24 +02:00
parent ad691b191a
commit 4608fa4ae6
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ if test "$start" = "-h"; then
exit
fi
if test -z "$start"; then
start=`git tag --sort=taggerdate | tail -1`;
start=`git tag --sort=taggerdate | grep "^curl-" | tail -1`;
echo "Since $start:"
fi

View File

@ -33,7 +33,7 @@ if test "$start" = "-h"; then
exit
fi
if test -z "$start"; then
start=`git tag --sort=taggerdate | tail -1`;
start=`git tag --sort=taggerdate | grep "^curl-" | tail -1`;
fi

View File

@ -35,7 +35,7 @@ if($start eq "-h") {
exit;
}
elsif($start eq "") {
$start = `git tag --sort=taggerdate | tail -1`;
$start = `git tag --sort=taggerdate | grep "^curl-" | tail -1`;
chomp $start;
}