mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-29 01:20:13 +00:00
builder: handle escapes without swallowing all of them.
Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
This commit is contained in:
+2
-1
@@ -24,8 +24,9 @@ func (b *Builder) replaceEnv(str string) string {
|
||||
continue
|
||||
}
|
||||
|
||||
prefix := match[:idx]
|
||||
stripped := match[idx+2:]
|
||||
str = strings.Replace(str, match, "$"+stripped, -1)
|
||||
str = strings.Replace(str, match, prefix+"$"+stripped, -1)
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user