mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 20:49:48 -05:00
FIX if dst cannot be deleted, it's an error
This commit is contained in:
1 parent
241d1d498f
commit
ea2f9bbc79
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user