scripts/cli in rvm-0.0.50 vs scripts/cli in rvm-0.0.51

- 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.09.24" + rvm_meta_updated="2009.09.29" } function __rvm_version { __rvm_meta ; echo "rvm $rvm_meta_version ($rvm_meta_updated) [$rvm_meta_website]" ; } function __rvm_usage { @@ -426,26 +426,29 @@ ;; info|debug) __rvm_version __rvm_info - if [ "$rvm_action" = "debug" ] ; then __rvm_debug ; fi + if [ "$rvm_action" = "debug" ] ; then rvm_debug_flag=1 ; __rvm_debug ; fi ;; error) __rvm_log "fail" "$rvm_error_message ( see: 'rvm usage' )" __rvm_pushpop result=1; ;; + *) if [ ! -z "$rvm_action" ] ; then __rvm_log "fail" "unknown action '$rvm_action'" else __rvm_usage fi result=1 esac + if [ "$rvm_trace_flag" = "1" ] ; then set +x ; unset rvm_trace_flag ; fi + return $result }