Skip to content

Commit a71078c

Browse files
committed
bump-versions-in-pom: work around BSD sed's lack of \| handling
Too bad: GNU sed and BSD sed differ in various ways, all of them annoying. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent c0b8d94 commit a71078c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bump-versions-in-pom.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ test -z "$bump_parent" || {
110110

111111
test "a--default" != "a$*" &&
112112
test "a--default-properties" != "a$*" ||
113-
set $(sed -n '/^ <properties>/,/<\(\/properties>\|!-- Open Microscopy Environment\)/s/.*<\([^>\/]*\.version\)>.*/\1 --latest/p' pom.xml)
113+
set $(sed -ne '/!-- Open Microscopy Environment/q' -e '/^ <properties>/,/<\/properties>/s/.*<\([^>\/]*\.version\)>.*/\1 --latest/p' pom.xml)
114114

115115
test $# -ge 2 &&
116116
test 0 = $(($#%2)) ||

0 commit comments

Comments
 (0)