Skip to content
This repository was archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
Fix bugs in release script
Browse files Browse the repository at this point in the history
* remove space between flag and value for sed command.
* untrap signals
  • Loading branch information
Rafal Wojdyla committed Nov 4, 2014
1 parent 9eaceaf commit 61003cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ trap "rm -f $temp_changelog; rm -f ${VERSION_FILE}.release_bak; \
fatal_error \"Something went wrong - please check your local changes \
- revert if needed\"" EXIT

sed -i .release_bak "s/$old_version/$version/g" $VERSION_FILE
sed -i.release_bak "s/$old_version/$version/g" $VERSION_FILE
rm ${VERSION_FILE}.release_bak

print_color "Version file updated:"
Expand All @@ -119,4 +119,6 @@ git commit -m "Release version $version"
print_color "Add tag $version"
git tag $version

trap - EXIT

print_color "Release prepared to go live - check changes, push code and distribution for release $version"

0 comments on commit 61003cb

Please sign in to comment.