Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Have gems load use current set / exported environment.

  • Loading branch information...
commit 4f821c7108c50794d056a6977ad5f005ca7cb528 1 parent 3f39aca
@wayneeseguin wayneeseguin authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 scripts/gems
View
8 scripts/gems
@@ -205,13 +205,9 @@ __rvm_gem_install() {
$rvm_scripts_path/log "warn" "$gem_name $gem_version is not installed, installing..."
if [[ ! -z "$rvm_ruby_gem_home" ]] ; then
- command="GEM_HOME='$rvm_ruby_gem_home' GEM_PATH='$rvm_ruby_gem_home' $gem_prefix $rvm_ruby_home/bin/gem install --no-rdoc --no-ri -q $gem $gem_postfix $vars"
+ command="GEM_HOME='$rvm_ruby_gem_home' GEM_PATH='$rvm_ruby_gem_home' $gem_prefix gem install --no-rdoc --no-ri -q $gem $gem_postfix $vars"
else
- if [[ ! -z "$rvm_ruby_home" ]] ; then
- command="$gem_prefix $rvm_ruby_home/bin/gem install --no-rdoc --no-ri -q $gem $gem_postfix $vars"
- else
- command="$gem_prefix gem install --no-rdoc --no-ri -q $gem $gem_postfix $vars"
- fi
+ command="$gem_prefix gem install --no-rdoc --no-ri -q $gem $gem_postfix $vars"
fi
if [[ -f "$gem" ]] ; then command="${command} -l" ; fi
eval $command > /dev/null 2>&1
Please sign in to comment.
Something went wrong with that request. Please try again.