More effective cleaner script

This commit is contained in:
Lucien Cartier-Tilet 2021-02-01 22:28:07 +01:00
parent 18fcb520ca
commit a8763d7cef
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

4
clean
View File

@ -4,9 +4,9 @@ FEXT=("pdf" "tex" "aux" "log" "toc" "out" "html" "lol" "lot" "epub" "bbl")
DIRS=("auto" "_minted*" "svg-inkscape") DIRS=("auto" "_minted*" "svg-inkscape")
for e in ${FEXT[*]}; do for e in ${FEXT[*]}; do
fd -uu -e "$e" -x rm {} fd -uu -e "$e" -X rm {}
done done
for d in ${DIRS[*]}; do for d in ${DIRS[*]}; do
fd -uu -t d "$d" -x rm -r {} fd -uu -t d "$d" -X rm -r {}
done done