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:
Thiago Silva 2022-08-30 16:57:16 -03:00 committed by GitHub
commit 7f4d809a15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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