do not display "Error" when newsboat is reloading
This commit is contained in:
parent
195a5ec9b6
commit
83f6e0960f
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
num="$(newsboat -x print-unread | cut -f1 -d ' ' )"
|
||||
if ! pgrep newsboat > /dev/null ; then
|
||||
[ "$num" = "0" ] || printf "📰%s" "$num"
|
||||
[ "$num" -gt 0 ] 2>/dev/null && printf "📰%s" "$num"
|
||||
printf '\n'
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user