Skip to content

Commit c0b8d94

Browse files
committed
bump-versions-in-pom: do not replace versions with empty strings, ever
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 49df30b commit c0b8d94

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

bump-versions-in-pom.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ s/.*<groupId>\([^<]*\).*<artifactId>'"$artifactId"'<.*/\1/p
157157
}' pom.xml | head -n 1):$artifactId"
158158
latest_message=" (latest $ga)"
159159
value="$(sh "$maven_helper" latest-version "$ga")"
160+
test -n "$value" || {
161+
echo "Warning: no version found for $ga" >&2
162+
shift
163+
shift
164+
continue
165+
}
160166
fi
161167

162168
p="$(sed_quote "$property")"

0 commit comments

Comments
 (0)