mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Merged 2215
This commit is contained in:
parent
2535f0754d
commit
a2e6cad821
@ -37,7 +37,7 @@ class Test
|
||||
def sys(command, *arg)
|
||||
@commands.push(command)
|
||||
command += "&> /dev/null" unless (command =~ />/)
|
||||
puts("[running #{command}]") if (ENV["DEBUG"] == "yes")
|
||||
$stderr.puts(command) if (ENV["DEBUG"] == "yes")
|
||||
if (!system(command))
|
||||
if ((arg.size == 0) || ((arg[0] << 8) != $?))
|
||||
error("system command failed: #{command} (" + ($? >> 8).to_s + ")")
|
||||
@ -57,7 +57,7 @@ class Test
|
||||
end
|
||||
|
||||
def hash_file(name)
|
||||
puts("[running md5sum #{name}]") if (ENV["DEBUG"] == "yes")
|
||||
$stderr.puts("md5sum #{name}") if (ENV["DEBUG"] == "yes")
|
||||
return `md5sum #{name}`.chomp.gsub(/\s+.*/, "")
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user