1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 22:55:10 +01:00

Other question method

This commit is contained in:
2015-06-15 14:17:44 +02:00
parent 21f1884f7d
commit 320b62c8bc

View File

@@ -4,6 +4,13 @@ git clean -d -x -n
echo "Continue the real cleanup of the tree? [y/N]"
read -n 1 "Continue the real cleanup of the tree (y/n)?" choice
case "$choice" in
y|Y ) echo "yes";;
n|N ) echo "no";;
* ) echo "invalid";;
esac
read -n 1 answer
if (( ${#answer} && (( "$answer" == "Y" || "$answer" == "y" )) )); then