Skip to content
Snippets Groups Projects
Commit b13ccfc9 authored by Martin's avatar Martin
Browse files

fix ruby version parser for rvm

parent 54e3a1d0
No related branches found
No related tags found
1 merge request!7fix ruby version parser for rvm
......@@ -12,4 +12,12 @@
# ruby --version
# ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
ruby --version | cut -b 6-8
\ No newline at end of file
# rvm list
# =* ruby-2.6.3 [ x86_64 ]
# #=> - current
# #=* - current && default
# # * - default
rvm list | grep ^= | cut -f 2 -d " " | cut -f 2 -d "-" || ruby --version
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment