mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 21:45:10 +01:00
22 lines
397 B
Bash
Executable File
22 lines
397 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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
|
|
echo "Cleaning up"
|
|
#git clean -d -x -f
|
|
else
|
|
echo "Aborted"
|
|
fi
|