From bca99b60b174bc287b9f396b3262417c4eec4ddc Mon Sep 17 00:00:00 2001 From: Alexei Syssoyev <34723727+AlexSyssoyev@users.noreply.github.com> Date: Sat, 30 May 2020 07:19:12 -0300 Subject: [PATCH] Fix sed to hide news when zero (#661) --- .local/bin/statusbar/news | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/statusbar/news b/.local/bin/statusbar/news index 69d9bf3..cbd976a 100755 --- a/.local/bin/statusbar/news +++ b/.local/bin/statusbar/news @@ -14,4 +14,4 @@ case $BLOCK_BUTTON in 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac - cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print "📰" $1}' | sed 's/^📰 0$//g')$(cat ${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/.update 2>/dev/null)" + cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print "📰" $1}' | sed 's/^📰0$//g')$(cat ${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/.update 2>/dev/null)"