commit 438634fec934102839e05b5c587d7eb3fdf17571
parent 645ef7420056796e6d2716bf920b8704451912ac
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 27 Jan 2021 18:04:32 +0100
sfeed_update: $SFEED_UPDATE_INCLUDE: be a bit more precise/pedantic
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git 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
@@ -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