File tree Expand file tree Collapse file tree
src/dev_tools_hooks/hooks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ yaml_get() {
4747 in_section && /^[a-zA-Z]/ { in_section=0 }
4848 in_section && $0 ~ "^ "child":" {
4949 gsub(/^ [a-zA-Z_-]+:[ ]*/, "")
50+ gsub(/^[ \t]+|[ \t]+$/, "")
5051 gsub(/^["' \' ' ]|["' \' ' ]$/, "")
5152 gsub(/^[ \t]+|[ \t]+$/, "")
5253 print
@@ -57,6 +58,7 @@ yaml_get() {
5758 awk -v key=" $key " '
5859 $0 ~ "^"key":" {
5960 gsub(/^[a-zA-Z_-]+:[ ]*/, "")
61+ gsub(/^[ \t]+|[ \t]+$/, "")
6062 gsub(/^["' \' ' ]|["' \' ' ]$/, "")
6163 gsub(/^[ \t]+|[ \t]+$/, "")
6264 print
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ yaml_get() {
5757 in_section && /^[a-zA-Z]/ { in_section=0 }
5858 in_section && $0 ~ "^ "child":" {
5959 gsub(/^ [a-zA-Z_-]+:[ ]*/, "")
60+ gsub(/^[ \t]+|[ \t]+$/, "")
6061 gsub(/^["' \' ' ]|["' \' ' ]$/, "")
6162 gsub(/^[ \t]+|[ \t]+$/, "")
6263 print
@@ -67,6 +68,7 @@ yaml_get() {
6768 awk -v key=" $key " '
6869 $0 ~ "^"key":" {
6970 gsub(/^[a-zA-Z_-]+:[ ]*/, "")
71+ gsub(/^[ \t]+|[ \t]+$/, "")
7072 gsub(/^["' \' ' ]|["' \' ' ]$/, "")
7173 gsub(/^[ \t]+|[ \t]+$/, "")
7274 print
You can’t perform that action at this time.
0 commit comments