dotfiles

Dotfiles for my OpenBSD environment.
Log | Files | Refs

commit 135f4bc4bfe3f99c04a09a9a463bfe679db1993a
parent e56e59b35ad96cae864ce2486400e459e273f9bc
Author: Matsuda Kenji <contact2655@matsudakenji.xyz>
Date:   Wed, 20 Jul 2022 20:08:36 +0900

fix bug

Diffstat:
Mbin/kagero | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/kagero b/bin/kagero @@ -43,7 +43,7 @@ list_files_to_replace(){ render_html(){ title=$(grep '<h1>' "$man/$1" | sed -E 's/<\/?h1>//g') - cat "$header" "$man/$1" "$footer" | + cat "$header" "$man/$1" "$footer" | sed 's/<!--title-->/'"$title"'/' } @@ -113,7 +113,7 @@ render) if [ -n "$fs" ]; then echo "$fs" | grep '\.html$' | while read f; do - render_html "$f" > "$pub/$1" + render_html "$f" > "$pub/$f" touch -r "$man/$f" "$pub/$f" done echo "$fs" | grep -Ev '\.html$' |