Permalink
Browse files

prevent spurious output in __rvm_gem and __rvm_gemset explorers

  • Loading branch information...
1 parent 11be251 commit 34fa123ed19856010582027c21d04d64cd2d52c0 @evax committed Jan 13, 2012
Showing with 5 additions and 5 deletions.
  1. +3 −3 conf/type/__rvm_gem/explorer/state
  2. +2 −2 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

0 comments on commit 34fa123

Please sign in to comment.