keep showing the newscount when newsboat is open

This commit is contained in:
odrling 2019-05-16 11:39:42 +02:00
parent 364689b9b7
commit 2742a65819

View file

@ -1,3 +1,5 @@
#!/bin/sh
newsboat -x print-unread | cut -d' ' -f1
lastfile=/tmp/lastnewscount.$USER
last=$(cat $lastfile)
(newsboat -x print-unread || echo $last) | cut -d' ' -f1 | tee $lastfile