diff options
Diffstat (limited to 'send_wm.sh')
-rwxr-xr-x | send_wm.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/send_wm.sh b/send_wm.sh new file mode 100755 index 0000000..a81c771 --- /dev/null +++ b/send_wm.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +target="https://brainbaking.com/post/2023/03/continuous-productivity-is-toxic/" +source="https://d-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 |