summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/build/config.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/build/config.go b/ui/build/config.go
index f02222e1a..d72c8fa01 100644
--- a/ui/build/config.go
+++ b/ui/build/config.go
@@ -1375,8 +1375,10 @@ func (c *configImpl) shouldCleanupRBELogsDir() bool {
// Perform a log directory cleanup only when the log directory
// is auto created by the build rather than user-specified.
for _, f := range []string{"RBE_proxy_log_dir", "FLAG_output_dir"} {
- if _, ok := c.environ.Get(f); ok {
- return false
+ if v, ok := c.environ.Get(f); ok {
+ if v != c.rbeTmpDir() {
+ return false
+ }
}
}
return true