summaryrefslogtreecommitdiff
path: root/send_wm.sh
blob: e8c323a34f2dc71f93f689860e11baea4ab4a3fa (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

target="https://brainbaking.com/post/2023/03/continuous-productivity-is-toxic/"
source="https://d-s.sh/2023/re-continuous-productivity-is-toxic/"

wm_link=$(curl $target | grep rel=\"webmention\" |  head -1 | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*")

curl -si $wm_link \
  -d source=$source \
  -d target=$target