Skip to content

Commit

Permalink
Updating rvm_version fact regex
Browse files Browse the repository at this point in the history
Updating rvm_version fact regex to account for master `-next` version tag based on https://github.com/rvm/rvm/blob/35e894c7070eaabc38d91220f6e26d1585a7098a/docs/release-procedure.md
  • Loading branch information
jplindquist authored Dec 2, 2022
1 parent 162698f commit 6070589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/facter/rvm_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
rvm_binary = '/usr/local/rvm/bin/rvm'

setcode do
File.exist?(rvm_binary) ? `#{rvm_binary} version`.strip.match(%r{rvm ([0-9]+\.[0-9]+\.[0-9]+) .*})[1] : nil
File.exist?(rvm_binary) ? `#{rvm_binary} version`.strip.match(%r{rvm ([0-9]+\.[0-9]+\.[0-9]+)(?:-next)? .*})[1] : nil
end
end

0 comments on commit 6070589

Please sign in to comment.