diff options
Diffstat (limited to 'scripts/sunrise-commit')
-rwxr-xr-x | scripts/sunrise-commit | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/scripts/sunrise-commit b/scripts/sunrise-commit index ba3f22a24..c64a5b5ef 100755 --- a/scripts/sunrise-commit +++ b/scripts/sunrise-commit @@ -44,7 +44,24 @@ changelog_append() { echo "!!! pre-existing modifications please run sunrise-commit again without the -c" echo "!!! option. To discard the pre-existing modifications run:" echo "!!! svn revert ChangeLog" - exit 1 + echo "!!!" + echo -n "!!! " + echo -n "${BOLD}Are you SURE you want to append to ChangeLog?${NORMAL} [${GREEN}No${NORMAL}/${RED}Yes${NORMAL}] " + read choice + echo + case "$choice" in + yes|Yes|YES) + ;; + + n*|N*|"") + echo "Aborting. Run sunrise-commit without the -c this time around." + exit 1 ;; + + *) + echo "Unrecognized response - assuming no." + echo "Aborting. Run sunrise-commit without the -c this time around." + exit 1 ;; + esac fi ebegin "Appending/creating ChangeLog" [ -e $(dirname $0)/echangelog ] && ec="$(dirname $0)/echangelog" || ec="echangelog" |