Merge pull request #1016 from MikeMcQuaid/migrate-handle-more-symlink-fails

update-report: handle directory not existing.
This commit is contained in:
Mike McQuaid 2016-09-18 20:18:42 +01:00 committed by GitHub
commit 132ed2bcd5

View File

@ -258,7 +258,7 @@ module Homebrew
dst = Pathname.new("#{HOMEBREW_PREFIX}/bin/brew")
begin
FileUtils.ln_s(src.relative_path_from(dst.parent), dst)
rescue Errno::EACCES
rescue Errno::EACCES, Errno::ENOENT
ofail <<-EOS.undent
Could not create symlink at #{dst}!
Please do this manually with: