Permalink
Browse files

improve wrappers

  • Loading branch information...
1 parent 98c4cd6 commit 12cc08b9653e989268087d18c9687417627cde93 @mpapis mpapis committed May 14, 2012
Showing with 7 additions and 14 deletions.
  1. +1 −1 rvm-test
  2. +5 −12 scripts/cli
  3. +1 −1 scripts/wrapper
View
@@ -316,18 +316,11 @@ __rvm_parse_args()
;;
wrapper)
- if (( $# == 0 )) || [[ -z "$next_token" ]]
- then
- rvm_error "Not enough parameters"
- rvm_action="help"
- rvm_ruby_args=("wrapper")
- else
- rvm_action="wrapper"
- rvm_ruby_string="$next_token" ;
- rvm_wrapper_name="$1"
- shift
- rvm_ruby_args=("$@") # list of binaries, or none
- fi
+ rvm_action="wrapper"
+ rvm_ruby_string="$next_token" ;
+ rvm_wrapper_name="$1"
+ (( $# == 0 )) || shift
+ rvm_ruby_args=("$@") # list of binaries, or empty
rvm_parse_break=1
;;
View
@@ -139,7 +139,7 @@ fi
# Use the correct ruby.
__rvm_become "$ruby_string" || {
rvm_error "Could not load ruby $ruby_string."
- exit 1
+ exit 3
}
__rvm_ensure_has_environment_files

0 comments on commit 12cc08b

Please sign in to comment.