From 53aace2c0017289f0eb2c6d944a3edc773d2c6a6 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 29 Apr 2022 20:51:52 +0200 Subject: idea --- .local/bin/idea | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to '.local/bin/idea') diff --git a/.local/bin/idea b/.local/bin/idea index e2853a1..a8acfae 100755 --- a/.local/bin/idea +++ b/.local/bin/idea @@ -1,9 +1,9 @@ #!/bin/sh -e if [ -z "$1" ]; then - read -r thought + thought=$(cat | xargs) elif [ -f "$1" ]; then - thought=$(cat "$1") + thought=$(cat "$1" | xargs) else thought="$*" fi @@ -22,14 +22,14 @@ gmi_fmt='\ sed -i '' -e '/$/{n;s/^/'"${html_fmt}"'/;}' \ "$HOME"/dev/web/jozanofastora.xyz/thoughts.html -git -C "$HOME"/dev/web/jozanofastora.xyz add -u -git -C "$HOME"/dev/web/jozanofastora.xyz commit -m "Thought: ${date}" -git -C "$HOME"/dev/web/jozanofastora.xyz push +git -C "$HOME"/dev/web/jozanofastora-www add -u +git -C "$HOME"/dev/web/jozanofastora-www commit -m "Thought: ${date}" +git -C "$HOME"/dev/web/jozanofastora-www push sed -i '' -e '15i '"${gmi_fmt}" \ "$HOME"/dev/web/jozan_gemini/thoughts.gmi -git -C "$HOME"/dev/web/jozan_gemini add -u -git -C "$HOME"/dev/web/jozan_gemini commit -m "Thought: ${date}" -git -C "$HOME"/dev/web/jozan_gemini push +git -C "$HOME"/dev/web/jozanofastora-gemini add -u +git -C "$HOME"/dev/web/jozanofastora-gemini commit -m "Thought: ${date}" +git -C "$HOME"/dev/web/jozanofastora-gemini push vps -- cgit v1.2.3