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:
parent
29be65c72e
commit
277ee5344e
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue