From fb977ebed3c52226c1f0192583e76505b20fdc78 Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 18 Feb 2023 04:03:48 +0100 Subject: up --- .local/bin/idea | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to '.local/bin/idea') diff --git a/.local/bin/idea b/.local/bin/idea index 7e12a56..0c212dd 100755 --- a/.local/bin/idea +++ b/.local/bin/idea @@ -14,13 +14,12 @@ html_fmt='\t\t\t\t

'"${date}"'<\/h3>\ \t\t\t\t\t'"${thought}"'\ \t\t\t\t<\/p>\ ' -gmi_fmt='\ -\ -## '"${date}"'\ -\ -'"${thought}" +case $(hostname -s) in + mother|po-rbo) sed="sed -i" ;; + fbsd-tp) sed="sed -i ''" ;; +esac -sed -i '' -e '/$/{n;s/^/'"${html_fmt}"'/;}' \ +$sed -e '/$/{n;s/^/'"${html_fmt}"'/;}' \ "$HOME"/dev/web/joe-www/thoughts.html git -C "$HOME"/dev/web/joe-www add -u git -C "$HOME"/dev/web/joe-www commit -m "Thought: ${date}" -- cgit v1.2.3