mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
Fixed mv.lua deleting source file even if target already exists. Closes #971.
This commit is contained in:
parent
a829a7f64a
commit
238436a68b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user