From 438634fec934102839e05b5c587d7eb3fdf17571 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 27 Jan 2021 18:04:32 +0100 Subject: sfeed_update: $SFEED_UPDATE_INCLUDE: be a bit more precise/pedantic --- sfeed_update | 2 +- 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 -- cgit v1.2.3