From 89eec1f1bacc0b69f454fdea7ffe3387010d6d95 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 26 Mar 2023 21:36:59 +0300 Subject: dont spawn a process when interating for extras --- lib/html.source.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/html.source.sh') 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" -- cgit v1.2.3