diff --git a/bin/git-clear b/bin/git-clear index f08819c..52bd14d 100755 --- a/bin/git-clear +++ b/bin/git-clear @@ -1,6 +1,6 @@ #!/usr/bin/env bash -echo "Sure? - This command may delete files that cannot be recovered, including those in .gitignore [y/N]" +echo -n "Sure? - This command may delete files that cannot be recovered, including those in .gitignore [y/N]: " read ans if [ "$ans" == "y" ] then git clean -d -f -x && git reset --hard diff --git a/bin/git-clear-soft b/bin/git-clear-soft index 003416a..8b1542d 100755 --- a/bin/git-clear-soft +++ b/bin/git-clear-soft @@ -1,6 +1,6 @@ #!/usr/bin/env bash -echo "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" ] then git clean -d -f && git reset --hard diff --git a/bin/git-sync b/bin/git-sync index 8de036a..49fe98f 100755 --- a/bin/git-sync +++ b/bin/git-sync @@ -60,7 +60,7 @@ function main() remote_branch="${remote}/${branch}" fi - echo "Are you sure you want to clean all changes & sync with '${remote_branch}'? [y/N]" + echo -n "Are you sure you want to clean all changes & sync with '${remote_branch}'? [y/N]: " local res read res case "${res}" in