summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-25 12:02:10 +0100
committerGitHub <noreply@github.com>2021-11-25 12:02:10 +0100
commit7324d94648a9987b0de2dc95cf1b6fbc20592532 (patch)
tree70b7c23eba1422ed95fc24bcea6f2782f6d38e49 /utils
parent12f73d5f88d8646058bbb4e673b04b413732dbe2 (diff)
parentbc3c5be2fb0fe652db53b931e1ae4a42da6fa014 (diff)
downloadpodman-7324d94648a9987b0de2dc95cf1b6fbc20592532.tar.gz
podman-7324d94648a9987b0de2dc95cf1b6fbc20592532.tar.bz2
podman-7324d94648a9987b0de2dc95cf1b6fbc20592532.zip
Merge pull request #12406 from Luap99/xdg-checkpoint
checkpoint do not modify XDG_RUNTIME_DIR
Diffstat (limited to 'utils')
-rw-r--r--utils/utils.go4
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 {