Skip to content

Commit

Permalink
fix removing extra rvm paths from PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Sep 11, 2012
1 parent dc7afed commit 7bc8f78
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/functions/env
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,10 @@ __rvm_remove_rvm_from_path()
{
typeset local_rvm_path
__rvm_remove_from_path "${rvm_path%/}/*"
__rvm_remove_from_path "${rvm_bin_path}" #TODO: this might be dangerous if rvm is available in some common path

#TODO: this might be dangerous if rvm is available in some common path
__rvm_remove_from_path "${rvm_bin_path}"
while local_rvm_path="$( __rvm_which rvm 2>/dev/null )"
do __rvm_remove_from_path "${local_rvm_path}"
do __rvm_remove_from_path "${local_rvm_path%/*}"
done
builtin hash -r
}
Expand Down

0 comments on commit 7bc8f78

Please sign in to comment.