fix list_tags_h problem when major version is bigger than v9

./scripts.sh list-tags -h cannot handle correctly when
the major version number is bigger than v9, so need to
add '*' in the regular expression of major number.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
This commit is contained in:
Chengguang Xu 2018-04-19 16:37:45 +08:00
parent 170949505d
commit 1b72698a06

View file

@ -51,7 +51,7 @@ list_tags_h()
{
echo "$tags" |
tac |
sed -r 's/^(v[0-9])\.([0-9]*)(.*)$/\1 \1.\2 \1.\2\3/'
sed -r 's/^(v[0-9]*)\.([0-9]*)(.*)$/\1 \1.\2 \1.\2\3/'
}
get_latest()