Merge pull request #1016 from MikeMcQuaid/migrate-handle-more-symlink-fails
update-report: handle directory not existing.
This commit is contained in:
commit
132ed2bcd5
@ -258,7 +258,7 @@ module Homebrew
|
|||||||
dst = Pathname.new("#{HOMEBREW_PREFIX}/bin/brew")
|
dst = Pathname.new("#{HOMEBREW_PREFIX}/bin/brew")
|
||||||
begin
|
begin
|
||||||
FileUtils.ln_s(src.relative_path_from(dst.parent), dst)
|
FileUtils.ln_s(src.relative_path_from(dst.parent), dst)
|
||||||
rescue Errno::EACCES
|
rescue Errno::EACCES, Errno::ENOENT
|
||||||
ofail <<-EOS.undent
|
ofail <<-EOS.undent
|
||||||
Could not create symlink at #{dst}!
|
Could not create symlink at #{dst}!
|
||||||
Please do this manually with:
|
Please do this manually with:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user