Skip to content

Commit 9c9a993

Browse files
committed
release-version: skip parent check if no parent
1 parent 5478ec0 commit 9c9a993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ test "$SKIP_VERSION_CHECK" || {
145145
MAVEN_HELPER="$(cd "$(dirname "$0")" && pwd)/maven-helper.sh"
146146
test -f "$MAVEN_HELPER" ||
147147
die "Missing helper script at '$MAVEN_HELPER'"
148-
test "$SKIP_VERSION_CHECK" || {
148+
test "$SKIP_VERSION_CHECK" -o "$parentGAV" != "${parentGAV#$}" || {
149149
latestParentVersion=$(sh -$- "$MAVEN_HELPER" latest-version "$parentGAV")
150150
currentParentVersion=${parentGAV##*:}
151151
test "$currentParentVersion" = "$latestParentVersion" ||

0 commit comments

Comments
 (0)