summaryrefslogtreecommitdiff
path: root/sfeed_update
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2023-12-27 13:20:07 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-12-27 13:20:07 +0100
commit0a5e36032373b34558e62f309be0b0ef7e925459 (patch)
tree7d2685a1797b16a1c52bb18959f60d5cb67ece34 /sfeed_update
parent1a5fa7454c92c5497c23e179e599224f0d96a920 (diff)
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 (limited to 'sfeed_update')
-rwxr-xr-xsfeed_update8
1 files 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