Skip to content

Commit

Permalink
Fixup: Add default value to version to release
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCAD committed Aug 24, 2023
1 parent c8cdb4c commit 9b33b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Releasing.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ fun askNewVersionInput(
val nonSnapshotVersion = currentSnapshotVersion.removeSuffix("-SNAPSHOT")
cliUi.printQuestion("Please enter the name of the new version you want to release,")
cliUi.printQuestion("or leave blank to release version $nonSnapshotVersion:")
val input = readln().trimEnd().ifBlank { currentSnapshotVersion }
val input = readln().trimEnd().ifBlank { nonSnapshotVersion }
input.checkIsValidVersionString()
when {
"-dev-" in input -> error("Dev versions not allowed")
Expand Down

0 comments on commit 9b33b54

Please sign in to comment.