diff options
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/idea | 16 | ||||
-rwxr-xr-x | .local/bin/vps | 2 |
2 files changed, 9 insertions, 9 deletions
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 '/<!-- thoughts here -->$/{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 diff --git a/.local/bin/vps b/.local/bin/vps index 1623510..1e735f1 100755 --- a/.local/bin/vps +++ b/.local/bin/vps @@ -16,7 +16,7 @@ rsync -urvhP --delete-after \ rsync -urvhP --delete-after \ --exclude '.*' \ --exclude 'README.org' \ - "$HOME"/dev/web/jozan_gemini/ \ + "$HOME"/dev/web/jozanofastora-gemini/ \ $serv_addr:/usr/local/gemini rsync -urvhP --delete-after \ --exclude '.*' \ |