Skip to content

Commit

Permalink
remove too verbose env output
Browse files Browse the repository at this point in the history
  • Loading branch information
xorpaul committed Jan 25, 2024
1 parent e94b230 commit 99341c9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,8 @@ func executeCommand(command string, commandDir string, timeout int, allowFail bo
os.Unsetenv("https_proxy")
os.Unsetenv("HTTP_PROXY")
os.Unsetenv("HTTPS_PROXY")
execCommand.Env = os.Environ()
Debugf("exec OS env:" + strings.Join(execCommand.Env, ",") + " for command " + command)
} else {
execCommand.Env = os.Environ()
Debugf("exec OS env:" + strings.Join(execCommand.Env, ",") + " for command " + command)
}
execCommand.Env = os.Environ()
out, err := execCommand.CombinedOutput()
duration := time.Since(before).Seconds()
er := ExecResult{0, string(out)}
Expand Down

0 comments on commit 99341c9

Please sign in to comment.