diff options
Diffstat (limited to 'auto-changelog.sh')
-rwxr-xr-x | auto-changelog.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/auto-changelog.sh b/auto-changelog.sh index b61141586..f9f577ade 100755 --- a/auto-changelog.sh +++ b/auto-changelog.sh @@ -16,7 +16,11 @@ while read -r line; do BODY=$(echo $line | sed -E 's/(.*):{2}(.*)/\2/') fi # add entry to CHANGELOG - sed -i'' '/## Current Develop Branch/a\ + if [[ "$OSTYPE" == "linux-gnu" ]]; then + sed -i'' '/## Current Develop Branch/a\ +- [#'"$PR"']('"$URL"'/pull/'"$PR"'): '"$BODY"''$'\n' CHANGELOG.md; else + sed -i '' '/## Current Develop Branch/a\ - [#'"$PR"']('"$URL"'/pull/'"$PR"'): '"$BODY"''$'\n' CHANGELOG.md; + fi done <<< "$LOG" echo 'CHANGELOG updated' |