From a253cda0aa27da0c0e72ba484b86a6bbf8a61471 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Wed, 9 Nov 2016 17:24:48 -0800 Subject: [PATCH] should fix #3571 --- post-processor/shell-local/post-processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {