commit 0a5e36032373b34558e62f309be0b0ef7e925459 parent 1a5fa7454c92c5497c23e179e599224f0d96a920 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 27 Dec 2023 13:20:07 +0100 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. Diffstat:
M | sfeed_update | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git 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