Skip to content

Commit 239bcde

Browse files
committed
Get rid of the upper bound ruby version check.
This check was not being maintained and has been failing with the latest rubies. It's not clear what the goal of this check was.
1 parent bf75bdb commit 239bcde

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bin/codedeploy-agent

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/usr/bin/env ruby
22

3-
ruby_versions = ["2.3", "2.2", "2.1", "2.0"]
3+
ruby_versions = ["2.4", "2.3", "2.2", "2.1", "2.0"]
44
actual_ruby_version = RUBY_VERSION.split('.').map{|s|s.to_i}
55
left_bound = '2.0.0'.split('.').map{|s|s.to_i}
6-
right_bound = '2.3.1'.split('.').map{|s|s.to_i}
76
ruby_bin = nil
87

9-
if (actual_ruby_version <=> left_bound) > -1 && (actual_ruby_version <=> right_bound) < 1
8+
if (actual_ruby_version <=> left_bound) > -1
109
ruby_bin = "ruby"
1110
else
1211
ruby_versions.each do |i|
@@ -22,5 +21,5 @@ if ruby_bin
2221
exec("#{ruby_bin} #{File.join(File.expand_path(File.dirname(__FILE__)), "../lib/codedeploy-agent.rb")} #{ARGV.join(' ')}")
2322
end
2423

25-
STDERR.puts "No supported ruby version found. Code Deploy Host Agent supports Ruby version of 2.0.x to 2.3.x."
24+
STDERR.puts "No supported ruby version found. Code Deploy Host Agent supports Ruby version 2.0.x and greater."
2625
exit(1)

0 commit comments

Comments
 (0)