Fix the tag numbering by using the correct sorting format (#3930)
The proper way to sort version numbers in an Unix shell is using sort -V.
This commit is contained in:
parent
91ef65fc2a
commit
7f4d809a15
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ fi
|
|||
|
||||
pushd "$source_dir"
|
||||
last_tag=""
|
||||
version_tags=$(git tag | sort -r | grep -E "^(V(${current_version_major}).(${current_version_minor})(DB[0-9]+))$")
|
||||
version_tags=$(git tag | sort -V -r | grep -E "^(V(${current_version_major}).(${current_version_minor})(DB[0-9]+))$")
|
||||
for tag in $version_tags; do
|
||||
if [[ -n "$tag" ]]; then
|
||||
last_tag=$tag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue