diff --git a/lib/bundler/installer/standalone.rb b/lib/bundler/installer/standalone.rb index f16135cb48..0dd1ef0903 100644 --- a/lib/bundler/installer/standalone.rb +++ b/lib/bundler/installer/standalone.rb @@ -31,7 +31,7 @@ module Bundler gem_path(path, spec).sub(version_dir, '#{ruby_engine}/#{ruby_version}') # This is a static string intentionally. It's interpolated at a later time. end - end.flatten + end.flatten.compact end def version_dir