Revert "Create '.keepme' files in directories"

This commit is contained in:
Mike McQuaid 2024-05-10 08:26:31 +01:00 committed by GitHub
parent 1c281368d4
commit af40f7d133
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