10 lines
270 B
Bash
Executable file
10 lines
270 B
Bash
Executable file
#!/bin/sh
|
|
|
|
yesterday=`date -d "@$(($(date +%s) - 86400))" -I`
|
|
|
|
echo "/tmp/webmention-storage/$yesterday"
|
|
|
|
if [ -f "/tmp/webmention-storage/$yesterday" ]
|
|
then
|
|
cat "/tmp/webmention-storage/$yesterday" | mail -r $SENDER -s "Your webmentions for $yesterday" $RECIPIENT
|
|
fi
|