Permalink
Browse files

when removing ruby also remove bin/ wrappers, fix #1453

  • Loading branch information...
mpapis committed Jan 24, 2013
1 parent 3f7d808 commit 52d6fe082f6522da7fc7cf35051a17d23d64a606
Showing with 6 additions and 2 deletions.
  1. +6 −2 scripts/functions/manage/base
@@ -903,9 +903,13 @@ __rvm_remove_gemsets()
__rvm_remove_wrappers()
{
rvm_log "Removing $rvm_ruby_string wrappers..."
- typeset wrapper wrappers
+ typeset -a wrappers
+ typeset wrapper
- wrappers=($(find "$rvm_wrappers_path" -maxdepth 1 -mindepth 1 -type d "${name_opt}" "*$rvm_ruby_string*" 2>/dev/null))
+ __rvm_read_lines wrappers <(
+ find "$rvm_wrappers_path" -maxdepth 1 -mindepth 1 -type d "${name_opt}" "*$rvm_ruby_string*" 2>/dev/null
+ find "$rvm_bin_path" -maxdepth 1 -mindepth 1 "${name_opt}" "*-$rvm_ruby_string" 2>/dev/null
+ )
for wrapper in "${wrappers[@]}"
do
__rvm_rm_rf "$wrapper"

0 comments on commit 52d6fe0

Please sign in to comment.