Commit: 3fbf4cc1fee47fb6043814ea827340bc77ac4511
Parent: 034764708aed0f03aa11e74e975a823f9644d392
Author: Randy Palamar
Date: Wed, 31 May 2023 11:30:59 -0600
sfeed_dmenu: remove uneeded grep call
using printf (shell builtin) for list concatenation removes the need to
strip excess newlines with grep (external)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/sfeed_dmenu b/bin/sfeed_dmenu
@@ -24,7 +24,7 @@ for arg; do
list=$(printf "%s\n" "$(unread "$sfeedpath/*")" "$list")
done
-url=$(echo "$list" | grep -v "^$" | dmenu -l 15 | cut -f 3)
+url=$(echo "$list" | dmenu -l 15 | cut -f 3)
[ -n "$url" ] || exit 0
echo "$url" | sfeed_markread read
echo "$url"