Skip to content
Snippets Groups Projects
Commit 83645334 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: hanging awk script

parent f8e4f944
No related branches found
No related tags found
No related merge requests found
......@@ -260,7 +260,7 @@ stages:
}
function awkenvsubst() {
awk '{while(match($0,"[$%]{[^}]*}")) {g0=substr($0,RSTART,RLENGTH); val=ENVIRON[substr(g0,3,RLENGTH-3)]; gsub(g0,val)}}1'
awk '{while(match($0,"[$%]{[^}]*}")) {var=substr($0,RSTART+2,RLENGTH-3);val=ENVIRON[var]; gsub("[$%]{"var"}",val)}}1'
}
function pre_apply() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment