Skip to content
Snippets Groups Projects
Commit 04439364 authored by Jack Nagel's avatar Jack Nagel
Browse files

Less code in begin block

parent 55e0f40d
No related branches found
No related tags found
No related merge requests found
......@@ -342,13 +342,17 @@ class Keg
end
if stat.directory?
keg = Keg.for(src)
begin
keg = Keg.for(src)
rescue NotAKegError
puts "Won't resolve conflicts for symlink #{dst} as it doesn't resolve into the Cellar" if ARGV.verbose?
return
end
dst.unlink unless mode.dry_run
keg.link_dir(src, mode) { :mkpath }
return true
end
rescue NotAKegError
puts "Won't resolve conflicts for symlink #{dst} as it doesn't resolve into the Cellar" if ARGV.verbose?
end
def make_relative_symlink dst, src, mode
......
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