Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

set old system path, since it gets overridden when user_env_compile i…

…s set
  • Loading branch information...
commit 47939505085a9e629f9b5bbdf22da064302192ce 1 parent e971b7b
@hone authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/language_pack/ruby.rb
View
3  lib/language_pack/ruby.rb
@@ -88,7 +88,8 @@ def ruby_version
return @ruby_version if @ruby_version
bootstrap_bundler do |bundler_path|
- @ruby_version = run("env PATH=$PATH:#{bundler_path}/bin GEM_PATH=#{bundler_path} bundle platform --ruby").chomp
+ old_system_path = "/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin"
+ @ruby_version = run("env PATH=#{old_system_path}:#{bundler_path}/bin GEM_PATH=#{bundler_path} bundle platform --ruby").chomp
end
if @ruby_version == "No ruby version specified" && ENV['RUBY_VERSION']
Please sign in to comment.
Something went wrong with that request. Please try again.