scripts/patches in rvm-1.0.6 vs scripts/patches in rvm-1.0.7

- old
+ new

@@ -4,23 +4,28 @@ # and dealing with patches. # Returns the path used to look for a patch given a specific name. __rvm_patch_lookup_path() { echo "/" + [[ -n "${rvm_patch_original_pwd:-""}" ]] && echo "$rvm_patch_original_pwd/" + echo "$PWD/" - __rvm_ruby_string_paths_under "$rvm_patches_path" | sed 's/$/\//' + + __rvm_ruby_string_paths_under "$rvm_path/patches" | sed 's/$/\//' + + return $? } __rvm_expand_patch_name() { local name expanded_patch_name name="${1:-""}" [[ -z "$name" ]] && return 0 - expanded_patch_name="$("$rvm_scripts_path/patchsets" show "$name")" + expanded_patch_name="$("$rvm_path/scripts/patchsets" show "$name")" if [[ "$?" == "0" ]]; then echo "${expanded_patch_name}" elif [[ "$name" != "default" ]]; then @@ -50,7 +55,7 @@ done done - return 1 + return 0 }