Skip to content

Commit

Permalink
tweak version update script sed usage to also work on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmellr committed Feb 1, 2024
1 parent a4643cb commit 8c5a154
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/update-examples-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8c5a154

Please sign in to comment.