Commit d64797cc authored by Jack Pearkes's avatar Jack Pearkes

provisioner/shell: remove check for empty env vars config

parent 349b5ab5
......@@ -62,13 +62,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
}
if p.config.ExecuteCommand == "" {
// Don't leave an empty space if Vars isn't configured
if p.config.Vars == nil {
p.config.ExecuteCommand = "sh {{.Path}}"
} else {
p.config.ExecuteCommand = "{{.Vars}} sh {{.Path}}"
}
p.config.ExecuteCommand = "{{.Vars}} sh {{.Path}}"
}
if p.config.Inline != nil && len(p.config.Inline) == 0 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment