helm/dev/rbenv/install

10 lines
268 B
Bash
Executable file

#!/bin/bash
if [[ -d "$HOME/.rbenv" ]]; then
>&2 echo "~/.rbenv already exists, can't install."
exit 1
else
git clone https://github.com/rbenv/rbenv.git $HOME/.rbenv
git clone https://github.com/rbenv/ruby-build.git $HOME/.rbenv/plugins/ruby-build
fi