Litter some more rescue nil's in there
I hate them but they were there when I got there. A more sane way to deal with this should happen someday.bug/bundler_fix
parent
f95da649f8
commit
356263df56
|
@ -48,7 +48,7 @@ module Auxiliary::JohnTheRipper
|
||||||
when /mingw|cygwin|mswin/
|
when /mingw|cygwin|mswin/
|
||||||
fname = "#{cpuinfo_base}/cpuinfo.exe"
|
fname = "#{cpuinfo_base}/cpuinfo.exe"
|
||||||
if File.exists?(fname) and File.executable?(fname)
|
if File.exists?(fname) and File.executable?(fname)
|
||||||
data = %x{"#{fname}"}
|
data = %x{"#{fname}"} rescue nil
|
||||||
end
|
end
|
||||||
case data
|
case data
|
||||||
when /sse2/
|
when /sse2/
|
||||||
|
@ -62,7 +62,7 @@ module Auxiliary::JohnTheRipper
|
||||||
fname = "#{cpuinfo_base}/cpuinfo.ia64.bin"
|
fname = "#{cpuinfo_base}/cpuinfo.ia64.bin"
|
||||||
if File.exists? fname
|
if File.exists? fname
|
||||||
::FileUtils.chmod(0755, fname) rescue nil
|
::FileUtils.chmod(0755, fname) rescue nil
|
||||||
data = %x{"#{fname}"}
|
data = %x{"#{fname}"} rescue nil
|
||||||
end
|
end
|
||||||
case data
|
case data
|
||||||
when /mmx/
|
when /mmx/
|
||||||
|
@ -74,7 +74,7 @@ module Auxiliary::JohnTheRipper
|
||||||
fname = "#{cpuinfo_base}/cpuinfo.ia32.bin"
|
fname = "#{cpuinfo_base}/cpuinfo.ia32.bin"
|
||||||
if File.exists? fname
|
if File.exists? fname
|
||||||
::FileUtils.chmod(0755, fname) rescue nil
|
::FileUtils.chmod(0755, fname) rescue nil
|
||||||
data = %x{"#{fname}"}
|
data = %x{"#{fname}"} rescue nil
|
||||||
end
|
end
|
||||||
case data
|
case data
|
||||||
when /sse2/
|
when /sse2/
|
||||||
|
|
Loading…
Reference in New Issue