diff --git a/setup.sh b/setup.sh index 693b9edacabff382f6b72c6a3760faa4226733f7..2fc1e43791288f626cddade343a07f4e59697d37 100644 --- a/setup.sh +++ b/setup.sh @@ -1,14 +1,14 @@ #!/bin/bash mkdir -p /usr/local/src -git clone https://github.com/sstephenson/rbenv.git /usr/local/src/.rbenv -pushd /usr/local/src/.rbenv +git clone https://github.com/sstephenson/rbenv.git ~/.rbenv +pushd ~/.rbenv git checkout 615f8443fe947f114fb358815b50978f6ab1881c popd -git clone https://github.com/sstephenson/ruby-build.git /usr/local/src/.rbenv/plugins/ruby-build -pushd /usr/local/src/.rbenv/plugins/ruby-build +git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build +pushd ~/.rbenv/plugins/ruby-build git checkout 476d09b66a14392989c3c65793428742e1d9f951 -PATH=/usr/local/src/.rbenv/bin:$PATH +PATH=~/.rbenv/bin:$PATH eval "$(rbenv init -)" rbenv install 2.4.1 rbenv global 2.4.1