contrib/release.sh: fix changelog edition

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2015-09-28 03:30:22 +02:00
parent fb12fc1975
commit d6c48d3fae

View File

@ -231,12 +231,13 @@ function update_changelog () {
# Check and edit Changelog. # Check and edit Changelog.
ask "Next step: you'll be asked to review the diff of $CHANGELOG" ask "Next step: you'll be asked to review the diff of $CHANGELOG"
action=$No while true
while test ! $action -eq $Yes
do do
git diff -- "$CHANGELOG" | less git diff -- "$CHANGELOG" | less
ask 'edit Changelog?' $CHANGELOG ask 'edit Changelog?' $CHANGELOG
action=$? test ! $? -eq $Yes && break
# Asked to edit the Changelog; will loop again.
$EDITOR "$CHANGELOG"
done done
} }