summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-03-26 21:36:59 +0300
committerPaul Buetow <paul@buetow.org>2023-03-26 21:36:59 +0300
commit89eec1f1bacc0b69f454fdea7ffe3387010d6d95 (patch)
treec501c73c680adbea12e0d001d3ae4e0518b2df58
parentd65e35caef5683182c23f786441d30f0ddee5aa1 (diff)
dont spawn a process when interating for extras
-rw-r--r--lib/html.source.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/html.source.sh b/lib/html.source.sh
index 03bbb45..ff91c4e 100644
--- a/lib/html.source.sh
+++ b/lib/html.source.sh
@@ -73,7 +73,6 @@ html::add_extras () {
local -r html_base_dir="$CONTENT_BASE_DIR/html"
cp "$HTML_CSS_STYLE" "$html_base_dir/style.css"
- find "$html_base_dir" -mindepth 1 -maxdepth 1 -type d | $GREP -E -v '(\.git)' |
while read -r section_dir; do
local override_source="./extras/html/style-$(basename "$section_dir")-override.css"
local override_dest="$section_dir/style-override.css"
@@ -82,8 +81,7 @@ html::add_extras () {
else
cp "$override_source" "$override_dest"
fi
- done
-
+ done < <(find "$html_base_dir" -mindepth 1 -maxdepth 1 -type d | $GREP -E -v '(\.git)')
cp "$HTML_WEBFONT_TEXT" "$html_base_dir/text.ttf"
cp "$HTML_WEBFONT_CODE" "$html_base_dir/code.ttf"
cp "$HTML_WEBFONT_HANDNOTES" "$html_base_dir/handnotes.ttf"