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
commitea2f9bbc79b1ab2f0dfb31dd2b5da1b6077f7db8 (patch)
tree29ee1672d5539dcc485b418f84ff7a8faf24e4fe /Library
parent241d1d498f4211b691d384c6816aeef5cd05a82e (diff)
downloadhomebrew-ea2f9bbc79b1ab2f0dfb31dd2b5da1b6077f7db8.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