mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Only delete a file if it actually exists.
This commit is contained in:
parent
c186560202
commit
96ba68b2e9
@ -66,7 +66,7 @@ class Test
|
|||||||
def hash_tmp(erase = true)
|
def hash_tmp(erase = true)
|
||||||
output = hash_file(@tmp)
|
output = hash_file(@tmp)
|
||||||
if (erase)
|
if (erase)
|
||||||
File.unlink(@tmp)
|
File.unlink(@tmp) if (File.exists?(@tmp))
|
||||||
@debug_commands.push("rm #{@tmp}")
|
@debug_commands.push("rm #{@tmp}")
|
||||||
@tmp = nil
|
@tmp = nil
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user