prevent spurious output in __rvm_gem and __rvm_gemset explorers

This commit is contained in:
Evax Software 2012-01-13 15:19:29 +01:00
parent 11be251163
commit 34fa123ed1
2 changed files with 5 additions and 5 deletions

View file

@ -28,10 +28,10 @@ if su - $user -c "[ ! -d \"\$HOME/.rvm\" ]" ; then
exit 0
fi
if su - $user -c "source \"\$HOME/.rvm/scripts/rvm\"
rvm list | grep $ruby"; then
rvm list | grep $ruby > /dev/null"; then
if su - $user -c "source \"\$HOME/.rvm/scripts/rvm\"
rvm use $ruby; rvm gemset list | grep $gemsetname > /dev/null &&
rvm use $gemset && gem list | grep $gem"; then
rvm use $ruby > /dev/null; rvm gemset list | grep $gemsetname > /dev/null &&
rvm use $gemset > /dev/null && gem list | grep $gem > /dev/null"; then
echo "installed"
exit 0
fi

View file

@ -27,9 +27,9 @@ if su - $user -c "[ ! -d \"\$HOME/.rvm\" ]" ; then
exit 0
fi
if su - $user -c "source \"\$HOME/.rvm/scripts/rvm\"
rvm list | grep $ruby"; then
rvm list | grep $ruby > /dev/null"; then
if su - $user -c "source \"\$HOME/.rvm/scripts/rvm\"
rvm use $ruby; rvm gemset list | grep $gemsetname > /dev/null"; then
rvm use $ruby > /dev/null; rvm gemset list | grep $gemsetname > /dev/null"; then
echo "installed"
exit 0
fi