diff options
author | Christian Stenger <christian.stenger@qt.io> | 2021-09-06 16:19:31 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2021-09-09 09:52:13 +0000 |
commit | 4ed03777d36c61dcae5f62819ca05a900421e196 (patch) | |
tree | 99a79a97fe8ef08e5c8ccfb813a7a0bcee1782ac /src | |
parent | 6c224f1341d8ce3e2e7f0ae0fcfadb65fb8e3129 (diff) |
Docker: Fix condition
Change-Id: I28c845ebd5a04e13cb109af03f6094306da64394
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/docker/dockerdevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/docker/dockerdevice.cpp b/src/plugins/docker/dockerdevice.cpp index 359e7c64a9f..eb151197393 100644 --- a/src/plugins/docker/dockerdevice.cpp +++ b/src/plugins/docker/dockerdevice.cpp @@ -1383,7 +1383,7 @@ void DockerDevice::runProcess(QtcProcess &process) const cmd.addArgs({"-w", workingDir.path()}); if (process.keepsWriteChannelOpen()) cmd.addArg("-i"); - if (env.size() != 0 && hasLocalFileAccess()) { + if (env.size() != 0 && !hasLocalFileAccess()) { process.unsetEnvironment(); // FIXME the below would be probably correct if the respective tools would use correct // environment already, but most are using the host environment which usually makes |