Introduction
Introduction Statistics Contact Development Disclaimer Help
sfeedmenu: spruce - sfeed-tools - Sfeed helper scripts.
git clone git://bitreich.org/sfeed-tools git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfr…
Log
Files
Refs
Tags
README
---
commit a1fe6fd69b48d9ea27f725ca421090fd4bb16adf
parent 76fcac95ec842a2a97d95dbd19d56fbda23007a5
Author: eidolon <?>
Date: Thu, 14 Nov 2024 22:45:21 -0500
sfeedmenu: spruce
Signed-off-by: Christoph Lohmann <[email protected]>
Diffstat:
M sfeedmenu | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/sfeedmenu b/sfeedmenu
@@ -31,19 +31,14 @@ plumber=plumb
feeddir="$HOME/.sfeed/feeds"
urlfile="$HOME/.sfeed/urls"
-if [ ! -d "$feeddir" ]; then
- die "$feeddir not found."
-fi
+command -v "$plumber" >/dev/null || die "$plumber not found."
-if ! command -v "$plumber" >/dev/null; then
- die "$plumber not found."
-fi
-
-[ -f "$urlfile" ] || : > "$urlfile"
+[ -d "$feeddir" ] || die "$feeddir not found."
+[ -f "$urlfile" ] || : > "$urlfile"
feeds=$(sfeed_plain "$feeddir"/* | grep '^N' | filter | sort -rn)
-count=$(printf '%s\n' "$feeds" | wc -l)
-prompt="$count feeds:"
+count=$(printf '%s\n' "$feeds" | wc -l | tr -d " ")
+prompt="$count feed items:"
while IFS= read -r i
do
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.