From eb23a397013622025dc3b64dda782a9a9cdea4cf Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 17 Sep 2016 19:02:36 +0100 Subject: [PATCH] utils: remove bad symlink if it already exists. --- Library/Homebrew/utils.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 0c36da2e17..268246ba8e 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