You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works great on most Ubuntu systems, Fedora, etc. However, Amazon Linux 2 has kernel versions like 5.4.129-72.229.amzn2int.x86_64 (ref)
>> Rex::Version.new('5.4.129-72.229.amzn2int.x86_64')
/usr/lib/ruby/vendor_ruby/rubygems/version.rb:223:in `initialize': Malformed version number string 5.4.129-72.229.amzn2int.x86_64 (ArgumentError)
So we'll need to do better about guarding like so:
require 'rex/version'
begin
Rex::Version.new('5.4.129-72.229.amzn2int.x86_64')
rescue ArgumentError => e
puts "Error reading invalid version: #{e}"
end
The text was updated successfully, but these errors were encountered:
Placeholder to link fixing several modules.
Several modules (a bunch written by me) use the following logic:
This works great on most Ubuntu systems, Fedora, etc. However, Amazon Linux 2 has kernel versions like
5.4.129-72.229.amzn2int.x86_64
(ref)So we'll need to do better about guarding like so:
The text was updated successfully, but these errors were encountered: