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

- old
+ new

@@ -36,17 +36,19 @@ echo "" fi done } -[[ -z "$1" ]] && usage +args=($*) +action="${args[0]}" +args="$(echo ${args[@]:1}) " # Strip trailing / leading / extra spacing. -action="$1"; shift +[[ -z "$action" ]] && usage case "$action" in identifier) tools_identifier ;; - path-identifier) tools_path_identifier "$@" ;; - strings) tools_strings "$@" ;; + path-identifier) tools_path_identifier "$args" ;; + strings) tools_strings "$args" ;; *) usage ;; esac exit $?