From 103e9797b1c7f578e21f6aedaf98e5581f49cbbe Mon Sep 17 00:00:00 2001 From: Prashanth Dwarakanath <pchengi@nsc.liu.se> Date: Mon, 19 Mar 2018 15:03:34 +0100 Subject: [PATCH] update setup.sh --- setup.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.sh b/setup.sh index 693b9ed..2fc1e43 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 -- GitLab