Fixed mv.lua deleting source file even if target already exists. Closes #971.

This commit is contained in:
Florian Nücke 2015-03-25 08:58:30 +01:00
parent a829a7f64a
commit 238436a68b

View File

@ -16,6 +16,7 @@ end
if fs.exists(to) then if fs.exists(to) then
if not options.f then if not options.f then
io.stderr:write("target file exists") io.stderr:write("target file exists")
return
end end
fs.remove(to) fs.remove(to)
end end