prevent spurious output in __rvm_gem and __rvm_gemset explorers

remotes/origin/feature_files_export
Evax Software 13 years ago
parent 11be251163
commit 34fa123ed1
  1. 6
      conf/type/__rvm_gem/explorer/state
  2. 4
      conf/type/__rvm_gemset/explorer/state

@ -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…
Cancel
Save