newsup fixes for notify-send if newsboat open

This commit is contained in:
Luke Smith
2018-12-18 14:23:36 -05:00
parent 1478dca4f4
commit 1283445b22
2 changed files with 6 additions and 8 deletions

View File

@@ -15,4 +15,4 @@ case $BLOCK_BUTTON in
<b>Note:</b> Only one instance of newsboat (including updates) may be running at a time." ;;
esac
echo "$(newsboat -x print-unread | awk '{ print $1}' | sed s/^0$//g)$(cat ~/.config/newsboat/.update 2>/dev/null)"
cat ~/.config/newsboat/.update 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print $1}' | sed s/^0$//g)$(cat ~/.config/newsboat/.update 2>/dev/null)"