From 6d49449a4d7543f0c3436529602089951f9c8455 Mon Sep 17 00:00:00 2001 From: grindhold Date: Fri, 23 Sep 2016 22:38:27 +0200 Subject: [PATCH] fixes #583 put default option in security-answer to 'no' --- bin/git-clear | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/git-clear b/bin/git-clear index f08b75d9e..f08819cc3 100755 --- a/bin/git-clear +++ b/bin/git-clear @@ -1,7 +1,7 @@ #!/usr/bin/env bash -echo "Sure? - This command may delete files that cannot be recovered, including those in .gitignore [Y/n]" +echo "Sure? - This command may delete files that cannot be recovered, including those in .gitignore [y/N]" read ans -if [ "$ans" != "n" ] +if [ "$ans" == "y" ] then git clean -d -f -x && git reset --hard fi