Skip to content

Commit

Permalink
provisioner/shell: remove check for empty env vars config
Browse files Browse the repository at this point in the history
  • Loading branch information
pearkes committed Jun 28, 2013
1 parent 21025f6 commit 8d84d0c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions provisioner/shell/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8d84d0c

Please sign in to comment.