From 704ea4b4bb4f0253657639399df9626eac14a9f4 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 18 Sep 2019 09:43:29 +0100 Subject: [PATCH] install: add comment explaining why we're creating these files. --- Library/Homebrew/install.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index 8ede763fc1..1d07053e03 100644 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -25,6 +25,9 @@ module Homebrew begin 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