diff --git a/scripts/next.sh b/scripts/next.sh index ef9b09b48..d28441fb4 100755 --- a/scripts/next.sh +++ b/scripts/next.sh @@ -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