summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"