mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-23 19:31:44 +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)
|
||||
output = hash_file(@tmp)
|
||||
if (erase)
|
||||
File.unlink(@tmp)
|
||||
File.unlink(@tmp) if (File.exists?(@tmp))
|
||||
@debug_commands.push("rm #{@tmp}")
|
||||
@tmp = nil
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user