Skip to content

Commit

Permalink
[#51] fix sed command options to be portable
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Jul 23, 2020
1 parent 89095d8 commit 567977b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RELEASE_VERSION="$(date -u +%Y.%m.%d_%H.%M.%S)"
DEVELOPMENT_VERSION="$(date -u +%Y.%m.%d_%H.%M)-NEXT-SNAPSHOT"
echo "Releasing v${RELEASE_VERSION}"

sed -i'' "s/<version>[0-9][0-9][0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]_[0-9][0-9].*</<version>${RELEASE_VERSION}</g" pom.xml
sed -i '' "s/<version>[0-9][0-9][0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]_[0-9][0-9].*</<version>${RELEASE_VERSION}</g" pom.xml

# The maven scm:checkin goal commits ALL modified files, not just pom.xml...
# see https://stackoverflow.com/questions/48947392/commit-multiple-files-with-maven-scm-plugin
Expand Down

0 comments on commit 567977b

Please sign in to comment.