aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-11-09 02:25:52 +0800
committerDan Finlay <542863+danfinlay@users.noreply.github.com>2018-11-16 02:12:11 +0800
commit5a2613c0425a83178e81c899a3c9d882b384c46d (patch)
treede27409366a4a589acaf9edc34c3c48416bc785b
parenta2bb08002c145bad0c2eb765eeeb6c21ef7ee3a6 (diff)
downloadtangerine-wallet-browser-5a2613c0425a83178e81c899a3c9d882b384c46d.tar.gz
tangerine-wallet-browser-5a2613c0425a83178e81c899a3c9d882b384c46d.tar.zst
tangerine-wallet-browser-5a2613c0425a83178e81c899a3c9d882b384c46d.zip
sed a command macos
-rwxr-xr-xauto-changelog.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto-changelog.sh b/auto-changelog.sh
index b4bcce066..e377d39f1 100755
--- a/auto-changelog.sh
+++ b/auto-changelog.sh
@@ -12,11 +12,11 @@ while read -r line; do
# 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'' -e "/## 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'