Skip to content

Commit 00e281f

Browse files
committed
Update "jq-template.awk" to ignore pure-comment lines
{{ # ... -}}
1 parent 8e42901 commit 00e281f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/jq-template.awk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function append_jq(expr) {
5050
if (!expr) return
5151
expr = trim(expr)
5252
if (!expr) return
53+
if (expr ~ /^#[^\n]*$/) return # ignore pure comment lines {{ # ... -}}
5354
if (expr ~ /^(def|include|import)[[:space:]]/) { # a few things need to go at the start of our "script"
5455
jq_expr_defs = jq_expr_defs expr ";\n"
5556
return

0 commit comments

Comments
 (0)