Skip to content
Snippets Groups Projects
Commit ba2d17b8 authored by Misty De Meo's avatar Misty De Meo
Browse files

Keg#unlink: Don't try to unlink if keg is unlinked

parent 4c38d151
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,8 @@ class Keg < Pathname
def unlink
n=0
return n if !linked?
%w[bin etc lib include sbin share var].map{ |d| self/d }.each do |src|
next unless src.exist?
src.find do |src|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment