sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit afc604c4c9c91febde2a313f731ff59974a533d5
parent fee20df52a9091ee3a3efeaf3ed63b6940fb5be5
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  5 Feb 2021 01:25:53 +0100

sfeed_update: $SFEED_UPDATE_INCLUDE: be a bit more precise/pedantic

Diffstat:
MREADME | 2+-
Msfeed_update | 2+-
Msfeed_update.1 | 4++--
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README b/README @@ -645,7 +645,7 @@ sfeed_update_xargs shellscript: # process a single feed. # args are: config, tmpdir, name, feedurl, basesiteurl, encoding - if [ "${SFEED_UPDATE_CHILD}" != "" ]; then + if [ "${SFEED_UPDATE_CHILD}" = "1" ]; then sfeedtmpdir="$2" _feed "$3" "$4" "$5" "$6" exit $? diff --git a/sfeed_update b/sfeed_update @@ -212,4 +212,4 @@ main() { exit 0 } -[ "${SFEED_UPDATE_INCLUDE}" != "" ] || main "$@" +[ "${SFEED_UPDATE_INCLUDE}" = "1" ] || main "$@" diff --git a/sfeed_update.1 b/sfeed_update.1 @@ -1,4 +1,4 @@ -.Dd January 27, 2021 +.Dd February 5, 2021 .Dt SFEED_UPDATE 1 .Os .Sh NAME @@ -47,7 +47,7 @@ The feedname cannot contain '/' characters, they will be replaced with '_'. .Sh ENVIRONMENT VARIABLES .Bl -tag -width Ds .It SFEED_UPDATE_INCLUDE -When set with a value +When set to "1" .Nm can be sourced as a script, but it won't run the .Fn main