Permalink
Browse files

Clear!.

  • Loading branch information...
1 parent 38e7cc8 commit bb3f61df21bc35b9c8a3a4e41ec1266a58224941 @wayneeseguin wayneeseguin committed Dec 2, 2009
Showing with 6 additions and 3 deletions.
  1. +2 −0 scripts/cli
  2. +4 −3 scripts/rvm
View
@@ -329,6 +329,8 @@ __rvm_parse_args() {
if [[ ! -z "$rvm_parse_break" ]] || [[ ! -z "$rvm_error_message" ]] ; then unset rvm_parse_break; break; fi
done
+ while [[ $# -gt 0 ]] ; do shift ; done
+
if [[ ! -z "$rvm_error_message" ]] ; then __rvm_pushpop ; return 1 ; fi
}
View
@@ -41,9 +41,10 @@ if [[ "$rvm_loaded_flag" != "1" ]] || [[ "$rvm_reload_flag" = "1" ]] ; then
alias rvm-restart="source '${rvm_path}/scripts/rvm'"
if [[ -f "$rvm_path/default" ]] ; then source "$rvm_path/default" ; fi
+fi
-else
- # Ok now we determine if we were called or sourced... under assumption of course ;)
- if [[ $# -gt 0 ]] && [[ -z "$(echo "$*" | awk '/completion-/')" ]] && [[ "$(basename $0)" = "rvm" ]] ; then rvm "$*" ; fi
+# Ok now we determine if we were called or sourced... under assumption of course ;)
+if [[ $# -gt 0 ]] && [[ -z "$(echo "$*" | awk '/completion-/')" ]] && [[ "$(basename $0)" = "rvm" ]] ; then
+ rvm "$*"
fi

0 comments on commit bb3f61d

Please sign in to comment.