diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb index 6ae2f1cdc85..d1d0f8cf978 100644 --- a/lib/bundler/runtime.rb +++ b/lib/bundler/runtime.rb @@ -224,11 +224,7 @@ def setup_environment rubyopt = [ENV["RUBYOPT"]].compact if rubyopt.empty? || rubyopt.first !~ /-rbundler\/setup/ rubyopt.unshift %|-rbundler/setup| - if Bundler::WINDOWS - rubyopt.unshift %|"-I#{File.expand_path('../..', __FILE__)}"| - else - rubyopt.unshift %|-I#{File.expand_path('../..', __FILE__)}| - end + rubyopt.unshift %|-I#{File.expand_path('../..', __FILE__)}| ENV["RUBYOPT"] = rubyopt.join(' ') end end