File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,23 @@ def macos?
8383 /darwin/ =~ RUBY_PLATFORM
8484end
8585
86+ def rhel?
87+ retval = false
88+ File . open ( "/etc/os-release" ) do |f |
89+ f . readlines . each do |line |
90+ case line
91+ when /ID="amzn"/
92+ retval = true
93+ when /ID="almalinux"/
94+ retval = true
95+ when /ID="rocky"/
96+ retval = true
97+ end
98+ end
99+ end
100+ retval
101+ end
102+
86103def ensure_directory ( dirname )
87104 mkdir_p ( dirname ) unless File . exist? ( dirname )
88105 if block_given?
@@ -433,6 +450,12 @@ class BuildTask
433450 puts "::group::Install ruby gems" if ENV [ "CI" ]
434451 gem_install ( "bundler" , BUNDLER_VERSION )
435452
453+ if not windows? and not macos? and rhel?
454+ IO . popen ( "rpm -qa | grep ssl" ) do |rpm_io |
455+ puts rpm_io . read
456+ end
457+ end
458+
436459 gem_home = ENV [ "GEM_HOME" ]
437460 ENV [ "GEM_HOME" ] = gem_staging_dir
438461 ENV [ "INSTALL_GEM_FROM_LOCAL_REPO" ] = "yes"
You can’t perform that action at this time.
0 commit comments