aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-09-17 19:02:36 +0100
committerMike McQuaid2016-09-17 19:02:36 +0100
commiteb23a397013622025dc3b64dda782a9a9cdea4cf (patch)
treefb00a1dc506fdde3bd0dbf780e40dbfb8b6f21bc /Library/Homebrew
parent5b8329b1c1d3189d8cbbdab848e5f7b0719661ad (diff)
downloadbrew-eb23a397013622025dc3b64dda782a9a9cdea4cf.tar.bz2
utils: remove bad symlink if it already exists.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/utils.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 0c36da2e1..268246ba8 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -637,6 +637,7 @@ def migrate_legacy_keg_symlinks_if_necessary
end
end
dst = HOMEBREW_LINKED_KEGS/name
+ dst.unlink if dst.exist?
FileUtils.ln_sf(src.relative_path_from(dst.parent), dst)
end
FileUtils.rm_rf legacy_linked_kegs