Merge pull request #17268 from Homebrew/revert-6464-master

Revert "Create '.keepme' files in directories"
This commit is contained in:
Mike McQuaid 2024-05-10 12:53:06 +01:00 committed by GitHub
commit e26e673119
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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