scripts/gems in rvm-0.0.95 vs scripts/gems in rvm-0.0.96

- old
+ new

@@ -10,12 +10,13 @@ color_none=$($rvm_scripts_path/color "none") if [[ -z "$rvm_ruby_gem_home" ]] ; then rvm_ruby_gem_home="$(gem env home)" ; fi if [[ "$rvm_trace_flag" -eq 1 ]] ; then set -x ; export rvm_trace_flag ; fi -trap "rm -f $rvm_path/$$* > /dev/null 2>&1 ; exit" 0 1 2 3 15 +trap "rm -f $rvm_path/tmp/$$* > /dev/null 2>&1 ; exit" 0 1 2 3 15 + __rvm_gems_name() { echo "$rvm_gem_set_name" } __rvm_gems_dir() { @@ -153,10 +154,10 @@ $rvm_scripts_path/log "error" "$rvm_file_name does not exist to load from." fi } __rvm_gem_install() { - installed_gem="$(ls ${rvm_ruby_gem_home}/specifications/${gem_file_name}*spec | head -n 1)" + installed_gem="$(ls ${rvm_ruby_gem_home}/specifications/${gem_file_name}*spec 2>/dev/null | head -n 1)" if [[ -z "$rvm_force_flag" ]] && [[ -f "$installed_gem" ]] ; then unset gem $rvm_scripts_path/log "info" "$color_green$gem_name $gem_version$yellow exists, skipping (--force to re-install)" else if [[ -f "$gem" ]] ; then