aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2021-03-13 15:05:48 +0100
committeryalh76 <yalh@yahoo.com>2021-03-13 15:05:48 +0100
commit9588b8da9393f874f8678b2aa56cdfea8da794a7 (patch)
tree8c9d7ffbe38cad71f13451305512554bc4a3ce01 /scripts
parent3fa6a835b570b181a2b5a95ac98c3b38f5738c3d (diff)
downloadmastodon_ynh-9588b8da9393f874f8678b2aa56cdfea8da794a7.tar.gz
mastodon_ynh-9588b8da9393f874f8678b2aa56cdfea8da794a7.tar.bz2
mastodon_ynh-9588b8da9393f874f8678b2aa56cdfea8da794a7.zip
Fix new rbenv install --list-all
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ynh_install_ruby__23
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