diff options
author | KatolaZ <katolaz@freaknet.org> | 2017-08-01 08:13:42 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2017-08-01 08:13:42 +0100 |
commit | 587c8bf41568c9624f9874bb4e2549227c1e3b63 (patch) | |
tree | 4b868145aa42682fd6093d653d5e23d56fe7604e /exec.go | |
parent | 3fcaf22bbb9425f2f393dcbba492912a8a246f92 (diff) |
sources passed thorugh gometalinterlint-refactor
Diffstat (limited to 'exec.go')
-rw-r--r-- | exec.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -26,7 +26,7 @@ func execLocalFile(cmdURL *url.URL, args, env []string) error { buff := bufio.NewScanner(stdout) log.Printf("[%s - stout follows: ]\n", cmd.Path) for buff.Scan() { - log.Printf(buff.Text()) // write each line to your log, or anything you need + log.Print(buff.Text()) // write each line to your log, or anything you need } err = cmd.Wait() } @@ -97,7 +97,7 @@ func setEnvironment(msg *SCORSHmsg, tag, author, committer string) []string { env = append(env, fmt.Sprintf("SCORSH_BRANCH=%s", msg.Branch)) env = append(env, fmt.Sprintf("SCORSH_OLDREV=%s", msg.OldRev)) env = append(env, fmt.Sprintf("SCORSH_NEWREV=%s", msg.NewRev)) - env = append(env, fmt.Sprintf("SCORSH_ID=%s", msg.Id)) + env = append(env, fmt.Sprintf("SCORSH_ID=%s", msg.ID)) env = append(env, fmt.Sprintf("SCORSH_TAG=%s", tag)) env = append(env, fmt.Sprintf("SCORSH_AUTHOR=%s", author)) env = append(env, fmt.Sprintf("SCORSH_COMMITTER=%s", committer)) |