Skip to content

Commit

Permalink
Hotfix 1.0.1
Browse files Browse the repository at this point in the history
Change which command for checking cmdline utiliy availability using system instead
  • Loading branch information
Kassang Konzi committed Apr 12, 2017
1 parent bd046a2 commit 77cc3da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@
*.log

test_binaries\.sh

test/reports/
3 changes: 2 additions & 1 deletion lib/apk_analyzer/analyzer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/apk_analyzer/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ApkAnalyzer
VERSION = "1.0.0"
VERSION = '1.0.1'
end

0 comments on commit 77cc3da

Please sign in to comment.