From e530d422a0cde51291cd17b528b4643504dcc0b2 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 20 Aug 2022 12:09:42 +0200 Subject: [PATCH] helper: don't setup cmd paths twice --- helpers/build-release-binaries/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/helpers/build-release-binaries/main.go b/helpers/build-release-binaries/main.go index 0c1e6527c..f81498bdf 100644 --- a/helpers/build-release-binaries/main.go +++ b/helpers/build-release-binaries/main.go @@ -103,7 +103,6 @@ func build(sourceDir, outputDir, goos, goarch string) (filename string) { ) c.Stdout = os.Stdout c.Stderr = os.Stderr - c.Dir = sourceDir verbose("run %v %v in %v", "go", c.Args, c.Dir) @@ -151,11 +150,9 @@ func compress(goos, inputDir, filename string) (outputFile string) { case "windows": outputFile = strings.TrimSuffix(filename, ".exe") + ".zip" c = exec.Command("zip", "-q", "-X", outputFile, filename) - c.Dir = inputDir default: outputFile = filename + ".bz2" c = exec.Command("bzip2", filename) - c.Dir = inputDir } rm(filepath.Join(inputDir, outputFile))