1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/discourse_ynh.git synced 2024-09-03 18:26:18 +02:00

Fix new rbenv install --list-all

This commit is contained in:
yalh76 2021-03-13 15:06:39 +01:00
parent 29be65c72e
commit 277ee5344e

View file

@ -369,6 +369,9 @@ ynh_install_ruby () {
# Install the requested version of Ruby # Install the requested version of Ruby
local final_ruby_version=$(rbenv latest --print $ruby_version) 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" 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 CONFIGURE_OPTS="--disable-install-doc --with-jemalloc" MAKE_OPTS="-j2" rbenv install --skip-existing $final_ruby_version > /dev/null 2>&1