config: get_meta_section() misunderstands the beginning of metasection
For example, the line, "if [[ -n $no_proxy ]]; then" is misparsed as the beginning of metasection because get_meta_section() misses escaping of "|" unlike get_meta_section_files(). This patch adds necessary escape as "|" -> "\|". Change-Id: Ic14b2ac167037c4f5db89492f0e8a4c5b13c7b6d Closes-Bug: #1262960
This commit is contained in:
parent
03af3f1802
commit
bff001456c
@ -35,7 +35,7 @@ function get_meta_section() {
|
|||||||
|
|
||||||
$CONFIG_AWK_CMD -v matchgroup=$matchgroup -v configfile=$configfile '
|
$CONFIG_AWK_CMD -v matchgroup=$matchgroup -v configfile=$configfile '
|
||||||
BEGIN { group = "" }
|
BEGIN { group = "" }
|
||||||
/^\[\[.+|.*\]\]/ {
|
/^\[\[.+\|.*\]\]/ {
|
||||||
if (group == "") {
|
if (group == "") {
|
||||||
gsub("[][]", "", $1);
|
gsub("[][]", "", $1);
|
||||||
split($1, a, "|");
|
split($1, a, "|");
|
||||||
|
Loading…
Reference in New Issue
Block a user