From dfb0edf4ce267d3b2e991fe051fa0e218d870ac4 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 22 Jul 2021 10:33:23 +0200 Subject: [PATCH] Docker: Fix logic and Qt6 build Change-Id: I3f0ec2cc86f48578e9dcd2ebfaa685cc577141c3 Reviewed-by: hjk --- src/plugins/docker/dockerdevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/docker/dockerdevice.cpp b/src/plugins/docker/dockerdevice.cpp index c09d2e38aea..eb0508d4b2c 100644 --- a/src/plugins/docker/dockerdevice.cpp +++ b/src/plugins/docker/dockerdevice.cpp @@ -1200,7 +1200,7 @@ bool DockerDevice::removeRecursively(const FilePath &filePath) const // We are expecting this only to be called in a context of build directories or similar. // Chicken out in some cases that _might_ be user code errors. QTC_ASSERT(path.startsWith('/'), return false); - const int levelsNeeded = path.startsWith("/home/" ? 4 : 3); + const int levelsNeeded = path.startsWith("/home/") ? 4 : 3; QTC_ASSERT(path.count('/') >= levelsNeeded, return false); return d->runInContainer({"rm", {"-rf", "--", path}});