diff --git a/helpers/ruby b/helpers/ruby index e0e388e22..625ded52e 100644 --- a/helpers/ruby +++ b/helpers/ruby @@ -81,7 +81,7 @@ ynh_use_ruby () { ynh_ruby_load_path="PATH=$PATH" # Sets the local application-specific Ruby version - pushd $final_path + pushd ${install_dir:-$final_path} $rbenv_install_dir/bin/rbenv local $ruby_version popd }