Revert "Create '.keepme' files in directories"
This commit is contained in:
parent
1c281368d4
commit
af40f7d133
@ -327,12 +327,6 @@ module Homebrew
|
||||
def attempt_directory_creation
|
||||
Keg::MUST_EXIST_DIRECTORIES.each do |dir|
|
||||
FileUtils.mkdir_p(dir) unless dir.exist?
|
||||
|
||||
# Create these files to ensure that these directories aren't removed
|
||||
# by the Catalina installer.
|
||||
# (https://github.com/Homebrew/brew/issues/6263)
|
||||
keep_file = dir/".keepme"
|
||||
FileUtils.touch(keep_file) unless keep_file.exist?
|
||||
rescue
|
||||
nil
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user