1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-02-04 19:20:27 +01:00
Files
dotfiles/bin/git_clean

15 lines
244 B
Bash
Executable File

#!/bin/bash
git clean -d -x -n
echo "Continue the real cleanup of the tree? [y/N]"
read -n 1 answer
if (( ${#answer} && (( "$answer" == "Y" || "$answer" == "y" )) )); then
echo "Cleaning up"
#git clean -d -x -f
else
echo "Aborted"
fi