|
|
|
@ -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 |
|
|
|
|