We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d8ad07 commit 1ff090cCopy full SHA for 1ff090c
lib/one_gadget/helper.rb
@@ -284,10 +284,7 @@ def objdump_arch_supported?(bin, arch)
284
return false if bin.nil?
285
286
arch = objdump_arch(arch)
287
- archs = `#{::Shellwords.join([bin, '--help'])}`.lines.find { |c| c.include?('supported architectures') }
288
- return false if archs.nil?
289
-
290
- archs.split.include?(arch)
+ `#{::Shellwords.join([bin, '--help'])}`.lines.any? { |c| c.split.include?(arch) }
291
end
292
293
# Converts to the architecture name shown in objdump's +--help+ command.
0 commit comments