diff options
Diffstat (limited to 'releaser/releaser.go')
-rw-r--r-- | releaser/releaser.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/releaser/releaser.go b/releaser/releaser.go index 97ffe1a2c..5c5a34787 100644 --- a/releaser/releaser.go +++ b/releaser/releaser.go @@ -20,11 +20,12 @@ import ( "io/ioutil" "log" "os" - "os/exec" "path/filepath" "regexp" "strings" + "github.com/gohugoio/hugo/common/hexec" + "github.com/gohugoio/hugo/common/hugo" "github.com/pkg/errors" ) @@ -266,7 +267,7 @@ func (r *ReleaseHandler) release(releaseNotesFile string) error { args = append(args, "--skip-publish") } - cmd := exec.Command("goreleaser", args...) + cmd, _ := hexec.SafeCommand("goreleaser", args...) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr err := cmd.Run() |