1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-01 01:41:50 -05:00

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 exit
fi fi
if test -z "$start"; then if test -z "$start"; then
start=`git tag --sort=taggerdate | tail -1`; start=`git tag --sort=taggerdate | grep "^curl-" | tail -1`;
echo "Since $start:" echo "Since $start:"
fi fi

View File

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

View File

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