diff --git a/post-processor/shell-local/post-processor.go b/post-processor/shell-local/post-processor.go index 45c9ddb85..9e9c74bd1 100644 --- a/post-processor/shell-local/post-processor.go +++ b/post-processor/shell-local/post-processor.go @@ -67,7 +67,7 @@ func (p *PostProcessor) Configure(raws ...interface{}) error { } if p.config.ExecuteCommand == "" { - p.config.ExecuteCommand = "chmod +x {{.Script}}; {{.Vars}} {{.Script}} {{.Artifact}}" + p.config.ExecuteCommand = "chmod +x \"{{.Script}}\"; {{.Vars}} \"{{.Script}}\" {{.Artifact}}" } if p.config.Inline != nil && len(p.config.Inline) == 0 {