cleanup.rb: ensure cache exists before touching .cleaned

This commit is contained in:
EricFromCanada 2020-11-14 10:48:10 -05:00
parent 023df124bd
commit 19a382570c

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