From 027224d0ad8d8578c6fba4054f3810e3099e74bb Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Thu, 29 Oct 2020 06:24:04 -0700 Subject: [PATCH] shlib.sh: provide a means to get only the 'var_...=' settings The various 'var_...=...' values are computed based on other values and normally appended to the list of all the scalar values extracted from Girocco::Config. Make it possible to retrieve just the list of 'var_...=...' values without the prepended scalars from Girocco::Config. Signed-off-by: Kyle J. McKay --- shlib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shlib.sh b/shlib.sh index 48593c4..33f5d93 100644 --- a/shlib.sh +++ b/shlib.sh @@ -113,7 +113,7 @@ get_girocco_config_var_list() ( # var_xfsz_err Shell error code when child dies from SIGXFSZ _cfg_vars="$(get_girocco_config_pm_var_list)" eval "$_cfg_vars" - printf '%s\n' "$_cfg_vars" + [ "$1" = "varonly" ] || printf '%s\n' "$_cfg_vars" printf 'var_group=%s\n' "${cfg_owning_group:-$(id -gn)}" perl - "$var_group" "$cfg_mirror_user" "$cfg_cgi_user" <<-'PERLPROG' no warnings; -- 2.11.4.GIT