aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-07-20 12:01:37 -0500
committerMisty De Meo2012-07-20 12:03:31 -0500
commit3870c933216bd5f3a35c779015ea3b8d0a2ac07f (patch)
treea6eb27e5ad3063673e291b416e60ef7b73b6f77b /Library
parent5ecc5ebf281f6f3c0a7d86d8a53726f01bc20f17 (diff)
downloadhomebrew-3870c933216bd5f3a35c779015ea3b8d0a2ac07f.tar.bz2
Keg#unlink: Don't try to unlink if keg is unlinked
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index 027b9d458..1e12d712e 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -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|