1
restaurant-search/scrape/node_modules/cheerio/scripts/prepublish

16 lines
297 B
Plaintext
Raw Normal View History

2014-07-08 04:35:52 +00:00
#!/usr/bin/env bash
set -e
tmp="$(mktemp -t "$(basename "$0").XXXXXXXXXX")"
printf "
$VERSION / $(date +"%Y-%m-%d")
==================
$(git --no-pager log --no-merges --pretty="format: * %s (%an)" $PREVIOUS_VERSION..)
" >"$tmp"
cat History.md >>"$tmp"
mv "$tmp" History.md
git add History.md