From 9588b8da9393f874f8678b2aa56cdfea8da794a7 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 13 Mar 2021 15:05:48 +0100 Subject: Fix new rbenv install --list-all --- scripts/ynh_install_ruby__2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/ynh_install_ruby__2 b/scripts/ynh_install_ruby__2 index 7afe7b5..f9cc22a 100644 --- a/scripts/ynh_install_ruby__2 +++ b/scripts/ynh_install_ruby__2 @@ -206,6 +206,9 @@ ynh_install_ruby () { # Install the requested version of Ruby local final_ruby_version=$(rbenv latest --print $ruby_version) + if ! [ -n "$final_ruby_version" ]; then + final_ruby_version=$ruby_version + fi ynh_print_info --message="Installing Ruby-$final_ruby_version" CONFIGURE_OPTS="--disable-install-doc --with-jemalloc" MAKE_OPTS="-j2" rbenv install --skip-existing $final_ruby_version > /dev/null 2>&1 -- cgit v1.2.3-70-g09d2