just default to patch bump

This commit is contained in:
Scott Chacon 2023-07-16 12:16:45 +02:00
parent e48c8b02bb
commit 116575386d

View File

@ -45,13 +45,10 @@ minor)
PATCH="0"
echo "$MAJOR.$MINOR.$PATCH"
;;
patch)
*)
MAJOR="$(echo "$VERSION" | cut -d. -f1)"
MINOR="$(echo "$VERSION" | cut -d. -f2)"
PATCH="$(($(echo "$VERSION" | cut -d. -f3) + 1))"
echo "$MAJOR.$MINOR.$PATCH"
;;
*)
error "invalid bump type: $BUMP"
;;
esac