diff options
author | Esteban MIno <efmino@uc.cl> | 2018-11-09 06:04:38 +0800 |
---|---|---|
committer | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-11-16 02:12:11 +0800 |
commit | 1a49ae234d11018770748b3adb5fca08109042cd (patch) | |
tree | b407e6440b90a7ea0569bf0e27156ec6a136b01a /auto-changelog.sh | |
parent | 82bbfb540bf0af52b35e4de62d0b2a2c2100582c (diff) | |
download | tangerine-wallet-browser-1a49ae234d11018770748b3adb5fca08109042cd.tar tangerine-wallet-browser-1a49ae234d11018770748b3adb5fca08109042cd.tar.gz tangerine-wallet-browser-1a49ae234d11018770748b3adb5fca08109042cd.tar.bz2 tangerine-wallet-browser-1a49ae234d11018770748b3adb5fca08109042cd.tar.lz tangerine-wallet-browser-1a49ae234d11018770748b3adb5fca08109042cd.tar.xz tangerine-wallet-browser-1a49ae234d11018770748b3adb5fca08109042cd.tar.zst tangerine-wallet-browser-1a49ae234d11018770748b3adb5fca08109042cd.zip |
detect os
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' |