cloudfoundry/vcap — Issue #173: please update rvm installer
Author: dai-vdr
Created: 2012-01-25 01:34:09+00:00
State: open

rvm installer within vcap installer says

```
Deprecated command, please use:

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
```

but vcap installer does not stop and finishes incomplete installation.
I made patch to update rvm installer URI and check return value.

```
--- install.orig	2012-01-25 10:16:46.000000000 +0900
+++ install	2012-01-25 10:22:33.000000000 +0900
@@ -60,8 +60,12 @@
fi

echo "Installing rvm"
-curl -s -k -B https://rvm.beginrescueend.com/install/rvm > /tmp/install_rvm
+curl -s -k -B https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer > /tmp/install_rvm
bash /tmp/install_rvm
+if [ "$?" != "0" ]; then
+ echo "failed to install rvm, cancelling setup"
+ exit 1
+fi
rm /tmp/install_rvm

echo "Activate rvm"
```