Skip to content

Commit 7e2417d

Browse files
committed
added .git exclusion
1 parent 0754064 commit 7e2417d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clean.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
22

3-
find . -regex ".*\(aux\|bbl\|blg\|idx\|log\|lof\|lot\|nav\|out\|snm\|toc\|synctex.gz\)$" -exec rm -f {} \;
3+
# that .git exclusion is super important ...
4+
find . -regex ".*[^\.git].*\(aux\|bbl\|blg\|idx\|log\|lof\|lot\|nav\|out\|snm\|toc\|synctex.gz\)$" -not -path '*/.git/*' -exec rm -vf {} \;

0 commit comments

Comments
 (0)