From 31dffefdd3e1b721296283120fa5ae9c2273e4fc Mon Sep 17 00:00:00 2001 From: p4bl0 Date: Sun, 24 Jul 2011 17:43:10 +0200 Subject: Asking for confirmation when installing on existing git repository instead of aborting --- install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 5b14f72..c837120 100644 --- a/install.sh +++ b/install.sh @@ -50,8 +50,13 @@ fugitive_install_config() { fugitive_install() { if [ -d ".git" ]; then - echo "There's already a git repository here, aborting install." - exit 1 + echo -n "There's already a git repository here, " + echo "enter 'yes' if you want to continue: " + read CONTINUE + if [ "$CONTINUE" != "yes" ]; then + echo "Okay, aborting." + exit 1 + fi fi echo -n "Creating new git repository... " git init >/dev/null -- cgit v1.2.3