checking for new articles externalized to cronjob

This commit is contained in:
Alexander Bocken 2020-09-17 13:56:46 +02:00
parent d8fe421174
commit 9758909ae7
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -1,5 +1,4 @@
#!/bin/bash #!/bin/bash
newsboat -x reload
num=$( cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print $1}' | sed s/^0$//g)$(cat ~/.config/newsboat/.update 2>/dev/null)") num=$( cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print $1}' | sed s/^0$//g)$(cat ~/.config/newsboat/.update 2>/dev/null)")
[ "$num" = "" ] || printf "📰%s" "$num" [ "$num" = "" ] || printf "📰%s" "$num"
printf '\n' printf '\n'