Skip to content

Commit

Permalink
CI: Fix version parsing and calculating for 2.0 (geany#3594)
Browse files Browse the repository at this point in the history
The previous logic failed on 2.0 to make the new version number 1.99.99.
This is fixed now even though the code is not perfect or good at all but
should work well enough for its purposes.
  • Loading branch information
eht16 authored Oct 12, 2023
1 parent 485d7d9 commit b17b389
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/ci_mingw64_geany.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,13 @@ patch_version_information() {
MINOR="${BASH_REMATCH[2]}"
PATCH="${BASH_REMATCH[4]}"
if [ -z "${PATCH}" ] || [ "${PATCH}" = "0" ]; then
MINOR="$((MINOR-1))"
PATCH="90"
if [ "${MINOR}" = "0" ]; then
MAJOR="$((MAJOR-1))"
MINOR="99"
else
MINOR="$((MINOR-1))"
fi
PATCH="99"
else
PATCH="$((PATCH-1))"
fi
Expand Down

0 comments on commit b17b389

Please sign in to comment.