shithub: hugo

Download patch

ref: de23293486bb678fda62c7ca38ed001669d1d227
parent: 918177ac2586e554aaccc51823d573695cb3c698
author: Bjørn Erik Pedersen <[email protected]>
date: Fri Aug 17 06:58:18 EDT 2018

releaser: Work around a Goreleaser bug

Closes #4918

--- a/releaser/releaser.go
+++ b/releaser/releaser.go
@@ -245,7 +245,12 @@
 		return nil
 	}
 
-	cmd := exec.Command("goreleaser", "--rm-dist", "--release-notes", releaseNotesFile, "--skip-publish="+fmt.Sprint(r.skipPublish))
+	args := []string{"--rm-dist", "--release-notes", releaseNotesFile}
+	if r.skipPublish {
+		args = append(args, "--skip-publish")
+	}
+
+	cmd := exec.Command("goreleaser", args...)
 	cmd.Stdout = os.Stdout
 	cmd.Stderr = os.Stderr
 	err := cmd.Run()