Skip to content

Commit

Permalink
Bugfix: 'rvm 1.9.1%somegem ; gem install wirble ; rvm 1.8.7 ; rvm gem…
Browse files Browse the repository at this point in the history
…s delete 1.9.1%somegem' now works properly.
  • Loading branch information
wayneeseguin committed Oct 28, 2009
1 parent f743615 commit 9e6f7fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/cli
Expand Up @@ -379,7 +379,10 @@ function __rvm_parse_args {
*) *)
if [[ ! -z "$rvm_token" ]] ; then if [[ ! -z "$rvm_token" ]] ; then
if [[ "gems" = "$rvm_action" ]] ; then if [[ "gems" = "$rvm_action" ]] ; then
if [[ ! -z "$(echo "$rvm_token" | awk '/\.gems$/')" ]] ; then if match "$rvm_token" "^.+%.+$" ; 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 '/\.gems$/')" ]] ; then
rvm_file_name="$(echo "$rvm_token" | sed 's#\.gems##g').gems" rvm_file_name="$(echo "$rvm_token" | sed 's#\.gems##g').gems"
# elif [[ ! -z "$(echo "$rvm_token" | awk '/\.gems$/')" ]] ; then # elif [[ ! -z "$(echo "$rvm_token" | awk '/\.gems$/')" ]] ; then
else else
Expand Down

0 comments on commit 9e6f7fd

Please sign in to comment.