mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 00:10:07 +01:00
contrib/release: fix parsing version in "release.sh" script
This commit is contained in:
parent
d7f6fb8378
commit
53bd66b540
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ parse_version() {
|
|||
local MIN="$(sed -n '1,20 s/^m4_define(\[nm_minor_version\], \[\([0-9]\+\)\])$/\1/p' ./configure.ac)"
|
||||
local MIC="$(sed -n '1,20 s/^m4_define(\[nm_micro_version\], \[\([0-9]\+\)\])$/\1/p' ./configure.ac)"
|
||||
|
||||
re='^[0-9][1-9]* [0-9][1-9]* [0-9][1-9]*$'
|
||||
re='^(0|[1-9][0-9]*) (0|[1-9][0-9]*) (0|[1-9][0-9]*)$'
|
||||
[[ "$MAJ $MIN $MIC" =~ $re ]] || return 1
|
||||
echo "$MAJ $MIN $MIC"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue