Skip to content

Commit

Permalink
Use b4n's simpler version
Browse files Browse the repository at this point in the history
  • Loading branch information
eht16 committed Oct 11, 2023
1 parent ee46cc1 commit 3613117
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions build/ci_mingw64_geany_plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,16 @@ patch_version_information() {
MAJOR="${BASH_REMATCH[1]}"
MINOR="${BASH_REMATCH[2]}"
PATCH="${BASH_REMATCH[4]}"
if [[ "${MINOR}" = "0" && (-z "${PATCH}" || "${PATCH}" = "0") ]]; then
MAJOR="$((MAJOR-1))"
MINOR="99"
PATCH="99"
else
if [[ -z "${PATCH}" || "${PATCH}" = "0" ]]; then
MINOR="$((MINOR-1))"
PATCH="99"
if [ -z "${PATCH}" ] || [ "${PATCH}" = "0" ]; then
if [ "${MINOR}" = "0" ]; then
MAJOR="$((MAJOR-1))"
MINOR="99"
else
PATCH="$((PATCH-1))"
MINOR="$((MINOR-1))"
fi
PATCH="99"
else
PATCH="$((PATCH-1))"
fi
else
echo "Could not extract or parse version tag" >&2
Expand Down

0 comments on commit 3613117

Please sign in to comment.