We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f44ef1f commit c36b710Copy full SHA for c36b710
scripts/cron/reload-newsboat
@@ -0,0 +1,16 @@
1
+#! /bin/sh
2
+
3
+if [ "$1" = "--help" ] || [ "$1" = "-h" ] || [ "$1" = "help" ]; then
4
+ cat <<EOF
5
+$ reload-newsboat
6
+Reload all newsboat instances
7
+EOF
8
+ exit
9
+fi
10
11
+command -v newsboat >/dev/null || { echo "newsboat is not installed" 1>&2; exit 127; }
12
13
+find ~/.config/newsboat -name "urls-*" | while read -r urlFile; do
14
+ id=$(echo $urlFile | rev | cut -d- -f1 | rev)
15
+ newsboat -u $urlFile -c ~/.config/newsboat/cache-$id.db --quiet -x reload &
16
+done
0 commit comments