diff --git a/bin/git-clear-soft b/bin/git-clear-soft index 8b1542d..9813659 100755 --- a/bin/git-clear-soft +++ b/bin/git-clear-soft @@ -1,7 +1,7 @@ #!/usr/bin/env bash -echo -n "Sure? - This command may delete files that cannot be recovered. Files and directories in .gitignore will be preserved [Y/n]: " +echo -n "Sure? - This command may delete files that cannot be recovered. Files and directories in .gitignore will be preserved [y/N]: " read ans -if [ "$ans" != "n" ] +if [ "$ans" == "y" ] then git clean -d -f && git reset --hard fi