summaryrefslogtreecommitdiff
path: root/run.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-13 16:16:18 -0600
committerJeff Carr <[email protected]>2024-12-13 16:16:18 -0600
commit8c68cff7624dd797533122509a7d86ed316090c5 (patch)
tree5cae23d1f096a619180533c24f19380970cca121 /run.go
parent02bbd75ce1d80f845673c30a004e35f9ce491ab6 (diff)
don't work on non-master branches
Diffstat (limited to 'run.go')
-rw-r--r--run.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/run.go b/run.go
index 2dcb53b..ac20c0a 100644
--- a/run.go
+++ b/run.go
@@ -13,7 +13,7 @@ import (
func purgeGoCaches() {
homedir, err := os.UserHomeDir()
if err != nil {
- badExit(err)
+ badExit(nil, err)
}
pkgdir := filepath.Join(homedir, "go/pkg")
var cmd []string
@@ -38,7 +38,7 @@ func runStrict(wd string, cmd []string) {
if wd != "" {
if err = os.Chdir(wd); err != nil {
log.Info("cd", "wd", "failed", err)
- badExit(err)
+ badExit(nil, err)
}
}
log.Info(wd, "running:", wd, cmd)
@@ -52,7 +52,7 @@ func runStrict(wd string, cmd []string) {
for i, line := range result.Stderr {
log.Info("STDERR:", i, line)
}
- badExit(err)
+ badExit(nil, err)
}
if result.Exit != 0 {
log.Info("cmd failed", wd, cmd, err)
@@ -62,7 +62,7 @@ func runStrict(wd string, cmd []string) {
for i, line := range result.Stderr {
log.Info("STDERR:", i, line)
}
- badExit(errors.New(fmt.Sprintf("cmd failed with %d", result.Exit)))
+ badExit(nil, errors.New(fmt.Sprintf("cmd failed with %d", result.Exit)))
}
for i, line := range result.Stdout {
log.Info(i, line)