Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

prevent spurious output in __rvm_gem and __rvm_gemset explorers

  • Loading branch information...
commit 34fa123ed19856010582027c21d04d64cd2d52c0 1 parent 11be251
Evax Software authored
6 conf/type/__rvm_gem/explorer/state
View
@@ -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
4 conf/type/__rvm_gemset/explorer/state
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.