Skip to content

Commit

Permalink
Merge pull request #191 from jplindquist/rvm-version-fact
Browse files Browse the repository at this point in the history
Updating rvm_version fact regex
  • Loading branch information
ekohl authored Dec 5, 2022
2 parents 162698f + 6070589 commit 3232492
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 3232492

Please sign in to comment.