posse (622B)
1 #!/usr/bin/env bash 2 3 # https://indieweb.org/POSSE 4 5 # POSSE to Twitter via Bridgy 6 # <https://brid.gy/> 7 # with the Will Norris Webmention app 8 # <https://willnorris.com/go/webmention> 9 10 unset -v first_db_line 11 12 # Read the first line (last entry) of the fakestache.db 13 read -r first_db_line < fakestache.db 14 15 # Extract the permalink 16 last_permalink=$(echo "$first_db_line" | cut -d "|" -f 3) 17 18 # Then send it to the webmention-go app 19 if hash webmention 2>/dev/null; then 20 webmention "$last_permalink" 21 else 22 echo "- Sorry But You must Install *webmention*." 23 echo "- Please Visit <https://willnorris.com/go/webmention>." 24 fi