Docker: Fix condition

Change-Id: I28c845ebd5a04e13cb109af03f6094306da64394
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2021-09-06 16:19:31 +02:00
parent 6c224f1341
commit 4ed03777d3

View File

@@ -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