Permalink
Browse files

Bugfix: only warn when using sytem.

  • Loading branch information...
wayneeseguin committed Apr 8, 2010
1 parent 55bdcd2 commit 83bfb6936b6855c30f360e61fe3ba6ed4b82c730
Showing with 6 additions and 7 deletions.
  1. +6 −7 scripts/utility
View
@@ -643,9 +643,8 @@ __rvm_gemset_select() {
rvm_ruby_global_gems_path="$rvm_gems_path/${rvm_ruby_string}${rvm_gemset_separator}global"
- if [[ -z "$(echo $GEM_HOME | grep "$rvm_path")" ]] ; then
- $rvm_scripts_path/log "error" "Gemsets cannot be used with system ruby installs (yet)."
- return 1
+ if [[ -z "$(echo $rvm_ruby_gem_home | grep "$rvm_path")" ]] ; then
+ $rvm_scripts_path/log "warn" "Gemsets cannot be used with system ruby installs (yet)."
fi
if [[ -z "$rvm_gemset_name" ]] ; then
@@ -720,10 +719,10 @@ __rvm_gemset_select() {
# Use a gemset specified by 'rvm_ruby_gem_home'
__rvm_gemset_use() {
- if [[ -z "$(echo $GEM_HOME | grep "$rvm_path")" ]] ; then
- $rvm_scripts_path/log "error" "Gemsets cannot be used with system ruby installs (yet)."
- return 1
- elif [[ ! -z "$rvm_ruby_gem_home" ]] ; then
+ if [[ -z "$(echo $rvm_ruby_gem_home | grep "rvm")" ]] ; then
+ $rvm_scripts_path/log "warn" "Gemsets cannot be used with system ruby installs (yet)."
+ fi
+ if [[ ! -z "$rvm_ruby_gem_home" ]] ; then
if [[ ! -d "$rvm_ruby_gem_home" ]] ; then
if [[ "$rvm_gemset_create_on_use_flag" -eq 1 ]] || [[ "$rvm_create_flag" -eq 1 ]]; then
$rvm_scripts_path/gemsets create $rvm_gemset_name

0 comments on commit 83bfb69

Please sign in to comment.