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

- old
+ new

@@ -10,15 +10,16 @@ echo "$PWD/" __rvm_ruby_string_paths_under "$rvm_patches_path" | sed 's/$/\//' } __rvm_expand_patch_name() { - [[ -z "$1" ]] && return - expanded_patch_name="$("$rvm_scripts_path/patchsets" show "$1")" + local name="$1" + [[ -z "$name" ]] && return 0 + expanded_patch_name="$("$rvm_scripts_path/patchsets" show "$name")" if [[ "$?" == "0" ]]; then - echo "$expanded_patch_name" - elif [[ "$1" != "default" ]]; then - echo "$1" + echo "${expanded_patch_name}" + elif [[ "$name" != "default" ]]; then + echo "$name" fi ; unset expanded_patch_name } # Return the full patch for a given patch. __rvm_lookup_full_patch_path() {