From b13ccfc917bbd30bd711c4081d5ac7b86e31a3e4 Mon Sep 17 00:00:00 2001 From: Martin <martin.gasser@protonmail.com> Date: Thu, 24 Feb 2022 14:07:06 +0100 Subject: [PATCH] fix ruby version parser for rvm --- check_eol-versiondetect/detect-ruby | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/check_eol-versiondetect/detect-ruby b/check_eol-versiondetect/detect-ruby index fed10d6..7b43650 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 -- GitLab