lib/u3d/installation.rb in u3d-1.1.2 vs lib/u3d/installation.rb in u3d-1.1.3
- old
+ new
@@ -204,9 +204,17 @@
end
private
def strings(path)
+ if `which strings` != ''
+ binutils_strings(path)
+ else
+ Utils.strings(path).to_a
+ end
+ end
+
+ def binutils_strings(path)
command = "strings #{path.shellescape}"
`#{command}`.split("\n")
end
# sorted by order of speed to fetch the strings data