summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2021-01-27 18:04:32 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2021-01-27 18:04:32 +0100
commit438634fec934102839e05b5c587d7eb3fdf17571 (patch)
treec236e824b6798cb8ea786cddd4867a34b9f5187a
parent645ef7420056796e6d2716bf920b8704451912ac (diff)
sfeed_update: $SFEED_UPDATE_INCLUDE: be a bit more precise/pedantic
-rwxr-xr-xsfeed_update2
-rw-r--r--sfeed_update.14
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