provisioner/shell: remove check for empty env vars config

pull/35/head
Jack Pearkes 13 years ago
parent 21025f64d5
commit 8d84d0cafa

@ -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 {

Loading…
Cancel
Save