mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
scripts: improve the "get latest curl release tag" logic
... by insiting on it matching "^curl-".
This commit is contained in:
parent
ad691b191a
commit
4608fa4ae6
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user