packaging: Fix push-new-version
- Stop color codes being sent to sed from git-grep.
This commit is contained in:
parent
5a83397a65
commit
da9dcd7b1c
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ if [ $NEW_VERSION == $CURRENT_VERSION ]; then
|
||||||
git tag --delete $CURRENT_VERSION
|
git tag --delete $CURRENT_VERSION
|
||||||
git push --delete origin $CURRENT_VERSION
|
git push --delete origin $CURRENT_VERSION
|
||||||
else
|
else
|
||||||
git grep -l $CURRENT_VERSION | xargs sed -i "s/$CURRENT_VERSION/$NEW_VERSION/g"
|
git grep --no-color -l $CURRENT_VERSION | xargs sed -i "s/$CURRENT_VERSION/$NEW_VERSION/g"
|
||||||
git commit --all --message="Update version to $NEW_VERSION"
|
git commit --all --message="Update version to $NEW_VERSION"
|
||||||
fi
|
fi
|
||||||
git tag $NEW_VERSION
|
git tag $NEW_VERSION
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue