Skip to content

Commit

Permalink
when removing ruby also remove bin/ wrappers, fix #1453
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Jan 24, 2013
1 parent 3f7d808 commit 52d6fe0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/functions/manage/base
Expand Up @@ -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"
Expand Down

0 comments on commit 52d6fe0

Please sign in to comment.