Browse files

Fix call to match() in __rvm_remove_binaries()

Signed-off-by: Craig S. Cottingham <craig.cottingham@gmail.com>
  • Loading branch information...
1 parent 3957545 commit 714bd0d6586cab5bc239ab207c05c33ed944c3b7 @CraigCottingham CraigCottingham committed May 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/manage
View
4 scripts/manage
@@ -1785,14 +1785,14 @@ __rvm_remove_binaries()
rvm_log "Removing $rvm_ruby_string binaries..."
# Iterate over all binaries and check for symlinked wrappers etc.
- local binary_name binaries full_patch_path
+ local binary_name binaries full_binary_path
binaries=($(find "${rvm_bin_path}" -maxdepth 1 -mindepth 1 "${name_opt}" "*$rvm_ruby_string*" ))
for full_binary_path in "${binaries[@]}"
do
if [[ -L "$full_binary_path" ]] &&
- match "$(readlink "$full_binary_path")" "$rvm_ruby_string"
+ "$rvm_scripts_path/match" "$(readlink "$full_binary_path")" "$rvm_ruby_string"
then
rm -f "$full_binary_path"
fi

0 comments on commit 714bd0d

Please sign in to comment.