aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-08-10 23:40:27 +0100
committerMax Howell2009-08-10 23:41:47 +0100
commit8c7b6a947cdcdb3a03852e4406534516e43b76cf (patch)
tree035ce381fe5c3e6de6f1d19a9c5dfcb27be69438 /Library
parent0f0f775ea91dd3c54081fc6245aeb61f0fcd8c89 (diff)
downloadbrew-8c7b6a947cdcdb3a03852e4406534516e43b76cf.tar.bz2
FIX if dst cannot be deleted, it's an error
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/pathname+yeast.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/pathname+yeast.rb b/Library/Homebrew/pathname+yeast.rb
index 9d515fb81..f0abda91e 100644
--- a/Library/Homebrew/pathname+yeast.rb
+++ b/Library/Homebrew/pathname+yeast.rb
@@ -26,7 +26,7 @@ class Pathname
def rename newname
raise unless file?
dst=dirname+newname
- dst.unlink rescue nil
+ dst.unlink if dst.exist?
mv dst
end