Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

do not teardown_final when using __rvm_with, update #2690

  • Loading branch information...
commit 9d5d25d9ad4152f543b2d2c7d98571b820ae1b0e 1 parent 6e3a885
@mpapis mpapis authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 scripts/functions/environment
View
13 scripts/functions/environment
@@ -283,10 +283,15 @@ __rvm_teardown()
__rvm_teardown_if_broken()
{
- if __function_on_stack __rvm_load_project_config
- then true # inside of loading .rvmrc
- elif (( ${__rvm_env_loaded:-0} > 0 ))
- then __rvm_teardown_final
+ if
+ __function_on_stack __rvm_load_project_config ||
+ __function_on_stack __rvm_with
+ then
+ true # inside of loading .rvmrc / __rvm_with
+ elif
+ (( ${__rvm_env_loaded:-0} > 0 ))
+ then
+ __rvm_teardown_final
fi
}
Please sign in to comment.
Something went wrong with that request. Please try again.