unsubscribe from github notifications via script
This commit is contained in:
parent
1311fb6ff4
commit
e20322ef12
1 changed files with 9 additions and 0 deletions
9
local/bin/munsubscribe
Executable file
9
local/bin/munsubscribe
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -z "$*" ]; then
|
||||
exec munsubscribe .
|
||||
else
|
||||
for url in $(mshow -qh list-unsubscribe "$@" | grep -o '<http[^>]*>' | sed -e 's/^<//' -e 's/>$//'); do
|
||||
curl -w '%{http_code}' -s -o /dev/null "$url"
|
||||
done
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue