From 5dcf6c17c4dc350215afba1ec4e4d27be8e060f7 Mon Sep 17 00:00:00 2001 From: Robert Buonpastore Date: Sun, 8 Jun 2014 23:17:18 -0400 Subject: [PATCH] ruby: Fix undefined method and directory not empty errors --- Library/Formula/ruby.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb index cc2b5da3b4ab..0f1974df5774 100644 --- a/Library/Formula/ruby.rb +++ b/Library/Formula/ruby.rb @@ -75,8 +75,8 @@ def post_install real.unlink if real.symlink? && real.readlink == link real.mkpath - link.unlink if link.exist? - link.symlink real + rm_rf Dir[link] if link.exist? + File.symlink(real, link) end end