diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/utils.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/utils/utils.go b/utils/utils.go index f2e7beef9..80eed7536 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -43,9 +43,7 @@ func ExecCmdWithStdStreams(stdin io.Reader, stdout, stderr io.Writer, env []stri cmd.Stdin = stdin cmd.Stdout = stdout cmd.Stderr = stderr - if env != nil { - cmd.Env = env - } + cmd.Env = env err := cmd.Run() if err != nil { |