display nothing with zero unread articles
This commit is contained in:
parent
134d1fab3d
commit
99e8109bf0
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/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" = "" ] || printf "📰%s" "$num"
|
[ "$num" = "0" ] || printf "📰%s" "$num"
|
||||||
printf '\n'
|
printf '\n'
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user