diff options
| author | yalh76 <yalh@yahoo.com> | 2021-03-13 15:05:48 +0100 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2021-03-13 15:05:48 +0100 |
| commit | 9588b8da9393f874f8678b2aa56cdfea8da794a7 (patch) | |
| tree | 8c9d7ffbe38cad71f13451305512554bc4a3ce01 | |
| parent | 3fa6a835b570b181a2b5a95ac98c3b38f5738c3d (diff) | |
| download | mastodon_ynh-9588b8da9393f874f8678b2aa56cdfea8da794a7.tar.gz mastodon_ynh-9588b8da9393f874f8678b2aa56cdfea8da794a7.tar.bz2 mastodon_ynh-9588b8da9393f874f8678b2aa56cdfea8da794a7.zip | |
Fix new rbenv install --list-all
| -rw-r--r-- | scripts/ynh_install_ruby__2 | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
