SEEN_SECTIONS -> SECTIONS_SEEN.
This commit is contained in:
parent
8a03e4f96f
commit
bd1ff63185
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue