diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-02-05 01:25:53 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-02-05 01:25:53 +0100 |
commit | afc604c4c9c91febde2a313f731ff59974a533d5 (patch) | |
tree | d105946093a89e16725afd6880cb94a784348220 | |
parent | fee20df52a9091ee3a3efeaf3ed63b6940fb5be5 (diff) |
sfeed_update: $SFEED_UPDATE_INCLUDE: be a bit more precise/pedantic
-rw-r--r-- | README | 2 | ||||
-rwxr-xr-x | sfeed_update | 2 | ||||
-rw-r--r-- | sfeed_update.1 | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -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 index d153d8a..7d11f18 100755 --- 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 index c3274ee..897bf1f 100644 --- 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 |