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