Skip to content

Commit

Permalink
Cater for difference between GNU and BSD sed (close #39)
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Jun 6, 2018
1 parent 696ef50 commit a1bd529
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tag_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ v="${1}"

export RELEASE_GIT_TAG="${v}"

sed -i .bak "s|^\(release: {name_template: \"\)\(.*\)\(\"}\)$|\1{{\ \.ProjectName\ }}\ ${RELEASE_GIT_TAG}\3|" ./.goreleaser.floating.yml
sed -i .bak "s|^\(release: {name_template: \"\)\(.*\)\(\"}\)$|\1{{\ \.ProjectName\ }}\ ${RELEASE_GIT_TAG} (permalink)\3|" ./.goreleaser.permalink.yml
sed -i.bak "s|^\(release: {name_template: \"\)\(.*\)\(\"}\)$|\1{{\ \.ProjectName\ }}\ ${RELEASE_GIT_TAG}\3|" ./.goreleaser.floating.yml
sed -i.bak "s|^\(release: {name_template: \"\)\(.*\)\(\"}\)$|\1{{\ \.ProjectName\ }}\ ${RELEASE_GIT_TAG} (permalink)\3|" ./.goreleaser.permalink.yml

git add ./.goreleaser.floating.yml
git add ./.goreleaser.permalink.yml
Expand Down

0 comments on commit a1bd529

Please sign in to comment.