Improve build.sh

This commit is contained in:
Elnu 2022-12-18 08:10:11 +00:00
parent e7f76f90ba
commit 6c585e5b92

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
git pull &> /dev/null; git pull
hugo &> /dev/null || /home/linuxbrew/.linuxbrew/bin/hugo &> /dev/null hugo
find public -path "*.html" -type f -exec tidy --quiet yes --drop-empty-elements no --hide-comments yes -o {} {} \ &> /dev/null; find public -name '*.html' -type f -exec tidy --quiet yes --drop-empty-elements no --hide-comments yes -mq '{}' \; &> /dev/null