Make sure ENV instruction within build perform a commit each time

Upstream-commit: 68934878f1e707b126ab754d48ff6c6eb858b37e
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-08-07 17:23:49 -07:00
committed by Michael Crosby
parent daa3c2ba78
commit 8e0a4e36d7

View File

@ -167,9 +167,9 @@ func (b *buildFile) CmdEnv(args string) error {
if envKey >= 0 {
b.config.Env[envKey] = replacedVar
return nil
} else {
b.config.Env = append(b.config.Env, replacedVar)
}
b.config.Env = append(b.config.Env, replacedVar)
return b.commit("", b.config.Cmd, fmt.Sprintf("ENV %s", replacedVar))
}