scripts/patches in rvm-1.0.1 vs scripts/patches in rvm-1.0.2
- old
+ new
@@ -3,24 +3,23 @@
# 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() {
- echo "/"
+ echo "/"
[[ -n "$rvm_patch_original_pwd" ]] && echo "$rvm_patch_original_pwd/"
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")"
+ expanded_patch_name="$("$rvm_scripts_path/patchsets" show "$1")"
if [[ "$?" == "0" ]]; then
echo "$expanded_patch_name"
elif [[ "$1" != "default" ]]; then
echo "$1"
- fi
- unset expanded_patch_name
+ fi ; unset expanded_patch_name
}
# Return the full patch for a given patch.
__rvm_lookup_full_patch_path() {
# Absolute path, pwd and then finally the rvm patches path.