diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-01-27 18:04:32 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-01-27 18:04:32 +0100 |
commit | 438634fec934102839e05b5c587d7eb3fdf17571 (patch) | |
tree | c236e824b6798cb8ea786cddd4867a34b9f5187a | |
parent | 645ef7420056796e6d2716bf920b8704451912ac (diff) |
sfeed_update: $SFEED_UPDATE_INCLUDE: be a bit more precise/pedantic
-rwxr-xr-x | sfeed_update | 2 | ||||
-rw-r--r-- | sfeed_update.1 | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sfeed_update b/sfeed_update index 7d11f18..d153d8a 100755 --- a/sfeed_update +++ b/sfeed_update @@ -212,4 +212,4 @@ main() { exit 0 } -[ "${SFEED_UPDATE_INCLUDE}" = "1" ] || main "$@" +[ "${SFEED_UPDATE_INCLUDE}" != "" ] || main "$@" diff --git a/sfeed_update.1 b/sfeed_update.1 index 552c81d..c3274ee 100644 --- a/sfeed_update.1 +++ b/sfeed_update.1 @@ -1,4 +1,4 @@ -.Dd January 24, 2021 +.Dd January 27, 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 +When set with a value .Nm can be sourced as a script, but it won't run the .Fn main |