@eht16 commented on this pull request.
if [ -z "${PATCH}" ] || [ "${PATCH}" = "0" ]; then
- MINOR="$((MINOR-1))" - PATCH="90" + if [[ "${MINOR}" = "0" && (-z "${PATCH}" || "${PATCH}" = "0") ]]; then + MAJOR="$((MAJOR-1))" + MINOR="99" + PATCH="99" else - PATCH="$((PATCH-1))" + if [[ -z "${PATCH}" || "${PATCH}" = "0" ]]; then + MINOR="$((MINOR-1))" + PATCH="99" + else + PATCH="$((PATCH-1))" + fi fi
Sweet, thank you.