From d6c48d3faea0e6ec4276fbdb40cc3d1ee8e3941f Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Mon, 28 Sep 2015 03:30:22 +0200 Subject: [PATCH] contrib/release.sh: fix changelog edition Signed-off-by: Nicolas Sebrecht --- contrib/release.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/release.sh b/contrib/release.sh index 72e9936..6978a23 100755 --- a/contrib/release.sh +++ b/contrib/release.sh @@ -231,12 +231,13 @@ function update_changelog () { # Check and edit Changelog. ask "Next step: you'll be asked to review the diff of $CHANGELOG" - action=$No - while test ! $action -eq $Yes + while true do git diff -- "$CHANGELOG" | less ask 'edit Changelog?' $CHANGELOG - action=$? + test ! $? -eq $Yes && break + # Asked to edit the Changelog; will loop again. + $EDITOR "$CHANGELOG" done }