Skip to content

Commit

Permalink
Update analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
greeneca committed Jun 11, 2021
1 parent cd8dcdf commit c51ddcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/roku_builder/plugins/analyzer.rb
Expand Up @@ -64,11 +64,12 @@ def analyze(options:, quiet: false)

def run_sca_tool(path:, ssai:)
if OS.unix?
command = File.join(File.dirname(__FILE__), "sca-cmd", "bin", "sca-cmd")
command = File.join(File.dirname(__FILE__), "sca-cmd", "bin", "export JAVA_HOME='JDK 11'; sca-cmd")
else
command = File.join(File.dirname(__FILE__), "sca-cmd", "bin", "sca-cmd.bat")
end
results = `#{@options[:sca_precommand]} #{command} #{path}`.split("\n")
@logger.debug("Command: '#{command}'")
results = `#{command} #{path}`.split("\n")
process_sca_results(results, ssai)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/roku_builder/version.rb
Expand Up @@ -2,5 +2,5 @@

module RokuBuilder
# Version of the RokuBuilder Gem
VERSION = "4.22.3"
VERSION = "4.22.4"
end

0 comments on commit c51ddcb

Please sign in to comment.