diff --git a/.gitignore b/.gitignore index b3b3320..b85ec71 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ *.log test_binaries\.sh + +test/reports/ diff --git a/lib/apk_analyzer/analyzer.rb b/lib/apk_analyzer/analyzer.rb index 6bf852e..c10aec4 100644 --- a/lib/apk_analyzer/analyzer.rb +++ b/lib/apk_analyzer/analyzer.rb @@ -68,7 +68,8 @@ def collect_manifest_info # Certificate info. Issuer and dates def collect_cert_info - raise 'keytool dependency not satisfied. Make sure that JAVA keytool utility is installed' if `which keytool` == '' + os_has_keytool = system('keytool') + raise 'keytool dependency not satisfied. Make sure that JAVA keytool utility is installed' unless os_has_keytool cert_info = {} certificate_raw = `keytool -printcert -rfc -jarfile #{@apk_path.shellescape}` certificate_content_regexp = /(-----BEGIN CERTIFICATE-----.*-----END CERTIFICATE-----)/m diff --git a/lib/apk_analyzer/version.rb b/lib/apk_analyzer/version.rb index 7bcefb3..b291999 100644 --- a/lib/apk_analyzer/version.rb +++ b/lib/apk_analyzer/version.rb @@ -1,3 +1,3 @@ module ApkAnalyzer - VERSION = "1.0.0" + VERSION = '1.0.1' end