From 8c7b6a947cdcdb3a03852e4406534516e43b76cf Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 10 Aug 2009 23:40:27 +0100 Subject: FIX if dst cannot be deleted, it's an error --- Library/Homebrew/pathname+yeast.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3