prevent spurious output in __rvm_gem and __rvm_gemset explorers
This commit is contained in:
parent
11be251163
commit
34fa123ed1
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue