contrib/release.sh: fix changelog edition
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
fb12fc1975
commit
d6c48d3fae
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user