Move twt script

This commit is contained in:
hedy 2024-04-12 11:02:06 +08:00
parent d365e1ca4c
commit 913dfce5c0
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
1 changed files with 0 additions and 23 deletions

23
bin/twt
View File

@ -1,23 +0,0 @@
#!/usr/bin/env bash
date=$(date -Iseconds)
dest=deploy@do.hedy.dev
destdir="~/static"
read -p ">> "
if [ -z "$REPLY" ]; then
echo cancelled
exit
fi
rsync --port 22 $dest:"$destdir"/tw.txt .
echo "$date $REPLY" >> tw.txt
echo [...]
tail -n2 tw.txt
echo rsync tw.txt -rav --port 22 $dest:"$destdir"
rsync tw.txt -rav --port 22 $dest:"$destdir"
echo gelim -I 'gemini://warmedal.se/~antenna/submit' -i 'gemini://do.hedy.dev/tw.txt'
gelim -I 'gemini://warmedal.se/~antenna/submit' -i 'gemini://do.hedy.dev/tw.txt'