From 0a5e36032373b34558e62f309be0b0ef7e925459 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 27 Dec 2023 13:20:07 +0100 Subject: sfeed_update: rename local variables just in case The config is loaded for each child program. These could override these variables if the user specifies the same name. --- sfeed_update | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sfeed_update b/sfeed_update index 1bdafed..607c048 100755 --- a/sfeed_update +++ b/sfeed_update @@ -233,11 +233,11 @@ if [ "${SFEED_UPDATE_CHILD}" = "1" ]; then IFS="" # "\037" [ "$1" = "" ] && exit 0 # must have an argument set printf '%s\n' "$1" | \ - while read -r config tmpdir name feedurl basesiteurl encoding; do + while read -r _config _tmpdir _name _feedurl _basesiteurl _encoding; do # load config file, sets $config. - loadconfig "${config}" - sfeedtmpdir="${tmpdir}" - _feed "${name}" "${feedurl}" "${basesiteurl}" "${encoding}" + loadconfig "${_config}" + sfeedtmpdir="${_tmpdir}" + _feed "${_name}" "${_feedurl}" "${_basesiteurl}" "${_encoding}" exit "$?" done exit 0 -- cgit v1.2.3