From 6c585e5b925b858cd4b7d1a91e0bba2babd0f6d8 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sun, 18 Dec 2022 08:10:11 +0000 Subject: [PATCH] Improve build.sh --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index af6ca96..64e5947 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ #!/bin/bash -git pull &> /dev/null; -hugo &> /dev/null || /home/linuxbrew/.linuxbrew/bin/hugo &> /dev/null -find public -path "*.html" -type f -exec tidy --quiet yes --drop-empty-elements no --hide-comments yes -o {} {} \ &> /dev/null; +git pull +hugo +find public -name '*.html' -type f -exec tidy --quiet yes --drop-empty-elements no --hide-comments yes -mq '{}' \; &> /dev/null