Skip to content

Commit 8456d42

Browse files
committed
fix: don't execute linter and format
1 parent e30a04d commit 8456d42

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/dev_tools_hooks/hooks/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

src/dev_tools_hooks/hooks/pre-push

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)