scripts/cli in rvm-0.0.59 vs scripts/cli in rvm-0.0.60

- old
+ new

@@ -3,11 +3,11 @@ function __rvm_meta { rvm_meta_author="Wayne E. Seguin" rvm_meta_author_email="wayneeseguin@gmail.com" rvm_meta_website="http://rvm.beginrescueend.com/" rvm_meta_version="$(cat $rvm_path/lib/VERSION.yml | tail -n 3 | sed 's/^.*: //g' | tr "\n" '.' | sed 's/\.$//')" - rvm_meta_updated="2009.10.16" + rvm_meta_updated="2009.10.18" } function __rvm_version { __rvm_meta ; echo "rvm $rvm_meta_version ($rvm_meta_updated) [$rvm_meta_website]" ; } function __rvm_usage { @@ -156,12 +156,12 @@ if [ "system" = "$1" ] ; then rvm_ruby_interpreter="system" ; shift ; fi if [ "user" = "$1" ] ; then rvm_ruby_interpreter="user" ; shift ; fi rvm_ruby_interpreter="${rvm_ruby_interpreter:-current}" ;; - --load|load|dump) - rvm_action=gems + --load|load|dump|clear) + rvm_action="gems" eval "rvm_${rvm_token}_flag=1" ;; gemdup) rvm_action=$rvm_token @@ -388,9 +388,12 @@ rvm_action="do" # Not sure if we really want to do this but we'll try it out. fi elif [ ! -z "$(echo $rvm_token | awk '/^.+%.+$/')" ] ; then rvm_gem_set_name="$(echo $rvm_token | awk -F'%' '{print $2}')" rvm_ruby_string="$(echo $rvm_token | awk -F'%' '{print $1}')" + #elif [ ! -z "$(echo $rvm_token | awk '/^[0-9].[0-9]/')" ] ; then + elif [[ $rvm_token =~ ^[0-9].[0-9] ]] ; then + rvm_ruby_string="$rvm_token" else if [ ! -z "$(echo $rvm_token | awk '/\.rb$/{print}')" ] ; then # we have a specified ruby script #if [[ ! $rvm_token =~ \.rb$ ]] ; then # we have a specified ruby script rvm_ruby_args=$rvm_token rvm_ruby_file=$rvm_token