scripts/selector in rvm-0.0.54 vs scripts/selector in rvm-0.0.55
- old
+ new
@@ -117,10 +117,10 @@
fi
fi
if [ -z "$rvm_gem_set_name" ] ; then
gemset=$(gem env gemdir | xargs basename | sed "s/${rvm_ruby_version}-//")
- if [ "$gemset" != "$rvm_ruby_version" ] ; then
+ if [ "$gemset" != "$rvm_ruby_version" -a -z "$(echo $gemset | awk '/^[0-9]/')" ] ; then
rvm_gem_set_name="$gemset"
else
unset rvm_gem_set_name
fi ; unset gemset
fi