scripts/rubygems in rvm-1.0.2 vs scripts/rubygems in rvm-1.0.3

- old
+ new

@@ -85,13 +85,14 @@ fi # # rvm rubygems use X # -if [[ $# -gt 0 ]] ; then - version="$1" ; shift - args="$(echo "$@" | __rvm_strip)" -else +args=($*) +version="${args[0]}" +args="$(echo ${args[@]:1}) " # Strip trailing / leading / extra spacing. + +if [[ -z "$version" ]] ; then "$rvm_scripts_path/log" "error" "A version must be specified, for example 'rvm rubygems 1.3.7'" exit 1 fi # Update the rubygems to the current.