Introduction
Introduction Statistics Contact Development Disclaimer Help
Add sfeed update script. - sfeed-tools - Sfeed helper scripts.
git clone git://bitreich.org/sfeed-tools git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfr…
Log
Files
Refs
Tags
README
---
commit 4a7e106a89a84ae0f0c04ae5c28de698fa26cbbe
parent a1fe6fd69b48d9ea27f725ca421090fd4bb16adf
Author: eidolon <?>
Date: Thu, 14 Nov 2024 23:34:58 -0500
Add sfeed update script.
Signed-off-by: Christoph Lohmann <[email protected]>
Diffstat:
A sfeedreload | 15 +++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/sfeedreload b/sfeedreload
@@ -0,0 +1,15 @@
+#!/bin/sh
+# Update sfeed and reload sfeed_curses. Good for use in crontab.
+
+feeds="$HOME/.sfeed/feeds"
+if ! command -v sfeed_update >/dev/null; then
+ printf '%s: sfeed_update not found\n' "${0##*/}" >&2
+ exit 1
+fi
+
+[ -d "$feeds" ] || mkdir -p "$feeds"
+
+sfeed_update
+ret=$?
+pgrep -x sfeed_curses >/dev/null && pkill -SIGHUP sfeed_curses
+exit $ret
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.