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:
parent
ad691b191a
commit
4608fa4ae6
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user