Fix a bug in which variables in prereq lists would get modified.
This commit is contained in:
parent
18b729821f
commit
39aebf9e77
1 changed files with 4 additions and 3 deletions
|
|
@ -59,9 +59,10 @@ func expand(input string, vars map[string][]string, expandBackticks bool) []stri
|
|||
var outparts []string
|
||||
outparts, off = expandSigil(input[i:], vars)
|
||||
if len(outparts) > 0 {
|
||||
outparts[0] = expanded + outparts[0]
|
||||
expanded = outparts[len(outparts)-1]
|
||||
parts = append(parts, outparts[:len(outparts)-1]...)
|
||||
parts = append(parts, expanded+outparts[0])
|
||||
if len(outparts) > 1 {
|
||||
parts = append(parts, outparts[1:len(outparts)-1]...)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue