Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit ffefe0f

Browse files
authored
Merge pull request #16 from bb/patch-1
Fix check for cert files
2 parents f32ce12 + 1233de9 commit ffefe0f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

check.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ def show_ssl_certs
6666
puts "", "Below affect only Ruby net/http connections:"
6767
puts
6868
t = ENV['SSL_CERT_FILE'] || OpenSSL::X509::DEFAULT_CERT_FILE
69-
ssl_file = if Dir.exist? t
69+
ssl_file = if File.exist? t
7070
"✅ exists #{t}"
7171
elsif RUBY_PLATFORM.end_with? 'linux'
7272
t = '/etc/ssl/certs/ca-certificates.crt'
73-
Dir.exist?(t) ? "✅ exists #{t}" : "❌ is missing #{t}"
73+
File.exist?(t) ? "✅ exists #{t}" : "❌ is missing #{t}"
7474
else
7575
"❌ is missing #{t}"
7676
end

0 commit comments

Comments
 (0)