summaryrefslogtreecommitdiff
path: root/exec.go
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2017-08-01 08:13:42 +0100
committerKatolaZ <katolaz@freaknet.org>2017-08-01 08:13:42 +0100
commit587c8bf41568c9624f9874bb4e2549227c1e3b63 (patch)
tree4b868145aa42682fd6093d653d5e23d56fe7604e /exec.go
parent3fcaf22bbb9425f2f393dcbba492912a8a246f92 (diff)
sources passed thorugh gometalinterlint-refactor
Diffstat (limited to 'exec.go')
-rw-r--r--exec.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec.go b/exec.go
index 88f878f..7a3b0cc 100644
--- a/exec.go
+++ b/exec.go
@@ -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))