diff --git a/check_eol-versiondetect/detect-ruby b/check_eol-versiondetect/detect-ruby index fed10d60fa8e083a631de246d954ca641e942497..7b4365091d7ea599218b95301fbac4094650bb9e 100755 --- a/check_eol-versiondetect/detect-ruby +++ b/check_eol-versiondetect/detect-ruby @@ -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