Merge pull request #9138 from EricFromCanada/cache-path-cleaned

cleanup.rb: ensure cache exists before touching .cleaned
This commit is contained in:
Eric Knibbe 2020-11-15 09:17:37 -05:00 committed by GitHub
commit 82e1b27624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,6 +168,7 @@ module Homebrew
return false if Homebrew::EnvConfig.no_install_cleanup? return false if Homebrew::EnvConfig.no_install_cleanup?
unless PERIODIC_CLEAN_FILE.exist? unless PERIODIC_CLEAN_FILE.exist?
HOMEBREW_CACHE.mkpath
FileUtils.touch PERIODIC_CLEAN_FILE FileUtils.touch PERIODIC_CLEAN_FILE
return false return false
end end