This is an automated email from the ASF dual-hosted git repository.
robbie pushed a commit to branch development
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-examples.git
The following commit(s) were added to refs/heads/development by this push:
new 8c5a154 tweak version update script sed usage to also work on MacOS
8c5a154 is described below
commit 8c5a154028ce38cf6425f4cb00c6278a557b9d24
Author: Robbie Gemmell <[email protected]>
AuthorDate: Thu Feb 1 12:12:39 2024 +0000
tweak version update script sed usage to also work on MacOS
---
scripts/update-examples-version.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/update-examples-version.sh
b/scripts/update-examples-version.sh
index 6ca05b5..dd4d4ae 100755
--- a/scripts/update-examples-version.sh
+++ b/scripts/update-examples-version.sh
@@ -51,7 +51,8 @@ echo "Setting examples version to ${NEW_VERSION}"
# Update root pom parent pom version
echo "Updating root pom *parent* version"
-sed -i "/<parent>/,/<version>/ s~<version>[^<]*~<version>${NEW_VERSION}~g w
/dev/stdout" ./pom.xml
+sed -i.bak "/<parent>/,/<version>/ s~<version>[^<]*~<version>${NEW_VERSION}~g
w /dev/stdout" ./pom.xml
+rm -f pom.xml.bak
# Update root pom version and all the child modules to match
echo "Updating root pom version and child modules"