wayneeseguin/rvm — Issue #713: Error when using sudo -s
Author: corsen2000
Created: 2012-01-21 19:02:49+00:00
State: open

Hello,

I have installed RVM and added the following to my .bashrc file under Ubuntu 10.10
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

This works fine but when I run the sudo -s command to switch to root, I get the following error:
$rvm_path (/usr/local/rvm) does not exist.__rvm_teardown: command not found

Not really sure whats going on here.

Thank you,
Bryan