Skip to content

Commit 47781f9

Browse files
committed
release-version.sh: die if version detection fails
And give full details on what went wrong.
1 parent 518025a commit 47781f9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎release-version.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ Options include:
113113
# -- Extract project details --
114114

115115
projectDetails=$(mvn -N -Dexec.executable='echo' -Dexec.args='${project.version}:${license.licenseName}:${project.parent.groupId}:${project.parent.artifactId}:${project.parent.version}' exec:exec -q)
116+
test $? -eq 0 || die "Could not extract version from pom.xml. Error follows:\n$projectDetails"
116117
currentVersion=${projectDetails%%:*}
117118
projectDetails=${projectDetails#*:}
118119
licenseName=${projectDetails%%:*}

0 commit comments

Comments
 (0)