Permalink
Browse files

simplify autolibs reading, fix #1767

  • Loading branch information...
1 parent b7f0cf3 commit d350138872767b0eda13a527a5c245d7e5b8a2f5 @mpapis mpapis committed Apr 5, 2013
Showing with 2 additions and 12 deletions.
  1. +2 −12 scripts/cli
View
@@ -54,12 +54,7 @@ __rvm_parse_args_find_known_flags()
shift
;;
(--autolibs=*)
- rvm_pretty_print_flag=${rvm_token#--color=}
- rvm_token="${rvm_token#--}"
- rvm_token="${rvm_token//-/_}"
- _string="${rvm_token#*=}"
- rvm_token="${rvm_token%%=*}"
- export "rvm_${rvm_token}_flag=${_string}"
+ export rvm_autolibs_flag="${rvm_token#*=}"
;;
(--)
shift
@@ -633,12 +628,7 @@ __rvm_parse_args()
;;
--autolibs=*)
- rvm_pretty_print_flag=${rvm_token#--color=}
- rvm_token="${rvm_token#--}"
- rvm_token="${rvm_token//-/_}"
- _string="${rvm_token#*=}"
- rvm_token="${rvm_token%%=*}"
- export "rvm_${rvm_token}_flag=${_string}"
+ export rvm_autolibs_flag="${rvm_token#*=}"
;;
--color=*)

0 comments on commit d350138

Please sign in to comment.