diff options
| -rwxr-xr-x | gemtexter | 4 | ||||
| -rw-r--r-- | lib/html.source.sh | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -111,6 +111,10 @@ main () { --version) echo "This is gemtexter version $VERSION $VERSION_DESCR" ;; + --publish) + $0 --generate + $0 --git + ;; --help|*) help ;; diff --git a/lib/html.source.sh b/lib/html.source.sh index 125b174..c303d2e 100644 --- a/lib/html.source.sh +++ b/lib/html.source.sh @@ -74,8 +74,8 @@ html::add_extras () { 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 section_dir; do - local override_source="./extras/html/style-$(basename $section_dir)-override.css" + 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" if [ ! -f "$override_source" ]; then touch "$override_dest" # Empty override |
