SEEN_SECTIONS -> SECTIONS_SEEN.

This commit is contained in:
Darren 'Tadgy' Austin 2019-07-20 19:29:51 +01:00
commit bd1ff63185

View file

@ -390,7 +390,7 @@ parse_ini() {
# Should we process repeat sections? # Should we process repeat sections?
if ((REPEAT_SECTIONS == 0)); then if ((REPEAT_SECTIONS == 0)); then
for SECTION in "${SEEN_SECTIONS[@]}"; do for SECTION in "${SECTIONS_SEEN[@]}"; do
if [[ "$CURRENT_SECTION" == "$SECTION" ]]; then if [[ "$CURRENT_SECTION" == "$SECTION" ]]; then
# It's a section we've seen before - don't process it. # It's a section we've seen before - don't process it.
echo "${0##*/}: line $LINENUMBER: repeated section name - skipping section" >&2 echo "${0##*/}: line $LINENUMBER: repeated section name - skipping section" >&2
@ -398,7 +398,7 @@ parse_ini() {
continue 2 continue 2
fi fi
done done
SEEN_SECTIONS+=("$CURRENT_SECTION") SECTIONS_SEEN+=("$CURRENT_SECTION")
fi fi
# Reset the ignore flag. # Reset the ignore flag.