We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0754064 commit 7e2417dCopy full SHA for 7e2417d
clean.sh
@@ -1,3 +1,4 @@
1
#!/bin/bash
2
3
-find . -regex ".*\(aux\|bbl\|blg\|idx\|log\|lof\|lot\|nav\|out\|snm\|toc\|synctex.gz\)$" -exec rm -f {} \;
+# 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