diff options
| author | Paul Buetow <paul@buetow.org> | 2022-07-02 19:57:14 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-07-02 19:57:14 +0300 |
| commit | 95bcc8d1e7deee2929676c74cad4fbce1ca97832 (patch) | |
| tree | a582789cc47cc3020a74b4a06e76c7305f219f26 | |
| parent | b733f1860f00c61eb33ff33c4368201a4c8161d9 (diff) | |
make ShellCheck happy
| -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 |
