Skip to content
Snippets Groups Projects
Commit 89ebffad authored by Mike McQuaid's avatar Mike McQuaid
Browse files

update-report: create top-level directories later.

Otherwise if they are created and empty they may be removed again
before we try to create the `/usr/local/bin/brew` symlink.
parent e2046797
No related branches found
No related tags found
No related merge requests found
......@@ -191,10 +191,6 @@ module Homebrew
return
end
Keg::ALL_TOP_LEVEL_DIRECTORIES.each do |dir|
FileUtils.mkdir_p "#{HOMEBREW_PREFIX}/#{dir}"
end
new_homebrew_repository = Pathname.new "/usr/local/Homebrew"
if new_homebrew_repository.exist?
ofail <<-EOS.undent
......@@ -254,6 +250,10 @@ module Homebrew
EOS
end
Keg::ALL_TOP_LEVEL_DIRECTORIES.each do |dir|
FileUtils.mkdir_p "#{HOMEBREW_PREFIX}/#{dir}"
end
src = Pathname.new("#{new_homebrew_repository}/bin/brew")
dst = Pathname.new("#{HOMEBREW_PREFIX}/bin/brew")
begin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment