Skip to content

Commit

Permalink
Fix rvm_ruby_configure_flags so that it only replaces commas with spa…
Browse files Browse the repository at this point in the history
…ces when they precede another option, thus allowing option values to contain commas.

Which is to say, `rvm install ruby-1.9.2-head -C --with-arch=x86_64,i386` now works.
  • Loading branch information
kch authored and wayneeseguin committed Jul 2, 2010
1 parent 5a1f762 commit 4bcb64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cli
Expand Up @@ -330,7 +330,7 @@ __rvm_parse_args() {

-C|--configure)
if [[ ! -z "$1" ]] ; then
rvm_ruby_configure_flags="$(echo $1 | tr ',' ' ')"
rvm_ruby_configure_flags="$(echo $1 | sed -e 's#,--# --#g')"
shift
else
rvm_action="error"
Expand Down

0 comments on commit 4bcb64b

Please sign in to comment.