Skip to content

Commit

Permalink
Make the tapping already there step actually work
Browse files Browse the repository at this point in the history
For when the symlink for a tap already exists and points to the thing we are about to symlink. This can happen, mostly because my code has sucked, but since the filesystem can be edited by the user at whim, it's possible then too.
  • Loading branch information
mxcl committed Mar 18, 2012
1 parent 224389d commit a190d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def link_tap_formula formulae
to = HOMEBREW_LIBRARY.join("Formula/#{formula.basename}")

# Unexpected, but possible, lets proceed as if nothing happened
formula.delete if to.symlink? and to.realpath == from
to.delete if to.symlink? and to.realpath == from

# using the system ln is the only way to get relative symlinks
system "ln -s ../Taps/#{formula} 2>/dev/null"
Expand Down

0 comments on commit a190d47

Please sign in to comment.