diff options
| author | Max Howell | 2009-08-10 23:40:27 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-10 23:41:47 +0100 |
| commit | 8c7b6a947cdcdb3a03852e4406534516e43b76cf (patch) | |
| tree | 035ce381fe5c3e6de6f1d19a9c5dfcb27be69438 /Library | |
| parent | 0f0f775ea91dd3c54081fc6245aeb61f0fcd8c89 (diff) | |
| download | brew-8c7b6a947cdcdb3a03852e4406534516e43b76cf.tar.bz2 | |
FIX if dst cannot be deleted, it's an error
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/pathname+yeast.rb | 2 |
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 |
