lib/roku_builder/plugins/analyzer.rb in roku_builder-4.22.4 vs lib/roku_builder/plugins/analyzer.rb in roku_builder-4.22.5
- old
+ new
@@ -62,10 +62,10 @@
private
def run_sca_tool(path:, ssai:)
if OS.unix?
- command = File.join(File.dirname(__FILE__), "sca-cmd", "bin", "export JAVA_HOME='JDK 11'; sca-cmd")
+ command = "export JAVA_HOME='JDK 11'; " + File.join(File.dirname(__FILE__), "sca-cmd", "bin", "sca-cmd")
else
command = File.join(File.dirname(__FILE__), "sca-cmd", "bin", "sca-cmd.bat")
end
@logger.debug("Command: '#{command}'")
results = `#{command} #{path}`.split("\n")