mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
sed a command macos
This commit is contained in:
parent
a2bb08002c
commit
5a2613c042
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user