utils: remove bad symlink if it already exists.

This commit is contained in:
Mike McQuaid 2016-09-17 19:02:36 +01:00
parent 5b8329b1c1
commit eb23a39701

View File

@ -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