mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cleanup.rb: ensure cache exists before touching .cleaned
This commit is contained in:
parent
023df124bd
commit
19a382570c
@ -168,6 +168,7 @@ module Homebrew
|
||||
return false if Homebrew::EnvConfig.no_install_cleanup?
|
||||
|
||||
unless PERIODIC_CLEAN_FILE.exist?
|
||||
HOMEBREW_CACHE.mkpath
|
||||
FileUtils.touch PERIODIC_CLEAN_FILE
|
||||
return false
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user