aboutsummaryrefslogtreecommitdiffstats
path: root/auto-changelog.sh
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-11-09 06:04:38 +0800
committerDan Finlay <542863+danfinlay@users.noreply.github.com>2018-11-16 02:12:11 +0800
commit1a49ae234d11018770748b3adb5fca08109042cd (patch)
treeb407e6440b90a7ea0569bf0e27156ec6a136b01a /auto-changelog.sh
parent82bbfb540bf0af52b35e4de62d0b2a2c2100582c (diff)
downloadtangerine-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-xauto-changelog.sh6
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'