scripts/patches in rvm-1.0.11 vs scripts/patches in rvm-1.0.13

- old
+ new

@@ -2,11 +2,12 @@ # General tools for manipulating patches # and dealing with patches. # Returns the path used to look for a patch given a specific name. -__rvm_patch_lookup_path() { +__rvm_patch_lookup_path() +{ echo "/" [[ -n "${rvm_patch_original_pwd:-""}" ]] && echo "$rvm_patch_original_pwd/" echo "$PWD/" @@ -14,11 +15,12 @@ __rvm_ruby_string_paths_under "$rvm_path/patches" | sed 's/$/\//' return $? } -__rvm_expand_patch_name() { +__rvm_expand_patch_name() +{ local name expanded_patch_name name="${1:-""}" [[ -z "$name" ]] && return 0 @@ -34,10 +36,11 @@ return 0 } # Return the full patch for a given patch. -__rvm_lookup_full_patch_path() { +__rvm_lookup_full_patch_path() +{ local extension patch_path directory directories # Absolute path, pwd and then finally the rvm patches path. directories=($(__rvm_patch_lookup_path))