Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
ruby: Fix undefined method and directory not empty errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Buonpastore committed Jun 9, 2014
1 parent 4fb9a13 commit 5dcf6c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Formula/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5dcf6c1

Please sign in to comment.