diff options
author | Esteban MIno <efmino@uc.cl> | 2018-11-09 01:51:07 +0800 |
---|---|---|
committer | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-11-16 02:12:11 +0800 |
commit | a2bb08002c145bad0c2eb765eeeb6c21ef7ee3a6 (patch) | |
tree | 2f9862c26bb98fdc843115d4c3bc8598dac0fc2c /auto-changelog.sh | |
parent | 37adf145abfa20c5032741955bcf1f03474143c0 (diff) | |
download | tangerine-wallet-browser-a2bb08002c145bad0c2eb765eeeb6c21ef7ee3a6.tar tangerine-wallet-browser-a2bb08002c145bad0c2eb765eeeb6c21ef7ee3a6.tar.gz tangerine-wallet-browser-a2bb08002c145bad0c2eb765eeeb6c21ef7ee3a6.tar.bz2 tangerine-wallet-browser-a2bb08002c145bad0c2eb765eeeb6c21ef7ee3a6.tar.lz tangerine-wallet-browser-a2bb08002c145bad0c2eb765eeeb6c21ef7ee3a6.tar.xz tangerine-wallet-browser-a2bb08002c145bad0c2eb765eeeb6c21ef7ee3a6.tar.zst tangerine-wallet-browser-a2bb08002c145bad0c2eb765eeeb6c21ef7ee3a6.zip |
add -i suffix -e for macos
Diffstat (limited to 'auto-changelog.sh')
-rwxr-xr-x | auto-changelog.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auto-changelog.sh b/auto-changelog.sh index cb0701ef6..b4bcce066 100755 --- a/auto-changelog.sh +++ b/auto-changelog.sh @@ -8,15 +8,15 @@ URL=$(echo $ORIGIN | sed -E 's/(.*).git{1}(.*)/\1/') LOG=$(git log $(git describe --tags $(git rev-list --tags --max-count=1))..HEAD --pretty="%s::%b" --reverse --grep="Merge pull request #" --grep="(#"); while read -r line; do # get git log subject - SUBJECT="$(echo $line | sed -E 's/(.*):{2}(.*)/\1/')" + SUBJECT=$(echo $line | sed -E 's/(.*):{2}(.*)/\1/') # get git log PR id, PR made with Github squash merge or Github regular merge PR=$(echo $SUBJECT | sed 's/^.*(#\([^&]*\)).*/\1/' | sed 's/^.*#\([^&]*\) from.*/\1/') # if PR made with Github squash merge, subject is the body - if [ -z "$(echo $line | sed -E 's/(.*):{2}(.*)/\2/')" ]; then + if [ -z $(echo $line | sed -E 's/(.*):{2}(.*)/\2/') ]; then BODY=$(echo $SUBJECT | sed "s/(#$PR)//g"); else BODY=$(echo $line | sed -E 's/(.*):{2}(.*)/\2/') fi # add entry to CHANGELOG - sed -i "" "/## Current Develop Branch/a - [#$PR]($URL/pull/$PR): $BODY" CHANGELOG.md; + sed -i'' -e "/## Current Develop Branch/a - [#$PR]($URL/pull/$PR): $BODY" CHANGELOG.md; done <<< "$LOG" -echo "CHANGELOG updated" +echo 'CHANGELOG updated' |