Skip to content

Commit 4e7d40e

Browse files
committed
Revert "Revert "Uses a better cleaning command, closes #2203""
This reverts commit f2742b8. That's not the JS breaker
1 parent f2742b8 commit 4e7d40e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

util/update-and-sync

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ echo 'Cleaning out old HTML files'
3030
# don't clean out html/ entirely, because there are some files
3131
# under version control there
3232
# build-log has been moved elsewhere, however
33-
find html/ -name '*.html' -delete
33+
# find html/ -name '*.html' -delete # This was the former order
34+
# This new one will clean all files not under source control.
35+
# Use only in the machine where you are going to run things.
36+
git clean -fd
3437

3538
# if the htmlify fails, sync the build log.
3639
# since sync-build-log returns false, not the whole thing is synced

0 commit comments

Comments
 (0)