lib/drive_info.rb in sensible-cinema-0.23.6 vs lib/drive_info.rb in sensible-cinema-0.24.0

- old
+ new

@@ -17,19 +17,19 @@ =end require 'digest/md5' require 'rubygems' require 'sane' require 'ostruct' - +require 'benchmark' class DriveInfo def self.md5sum_disk(dir) if OS.mac? command = "#{__DIR__}/../vendor/mac_dvdid/bin/dvdid #{dir}" else command = "#{__DIR__}/../vendor/dvdid.exe #{dir}" end - output = `#{command}` + output = `#{command}` # can take like 2.2s raise 'dvdid command failed?' + command unless $?.exitstatus == 0 output.strip end def self.get_dvd_drives_as_openstruct