Suppression de la suppression de .rbenv !

This commit is contained in:
2018-05-07 19:40:06 +02:00
parent cea26579d2
commit 37e8c0f9d0
2 changed files with 1 additions and 5 deletions

View File

@@ -1,11 +1,7 @@
#!/bin/bash
# https://anystack.xyz/how-to-install-mastodon-ubuntu/
echo "Phase 3: Preparation de l\'environnement"
cd $HOME
pwd
sleep 20
git clone https://github.com/rbenv/rbenv.git $HOME/.rbenv || exit 101
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> $HOME/.bashrc
echo 'eval "$(rbenv init -)"' >> $HOME/.bashrc

View File

@@ -3,7 +3,7 @@ set -x
# Let's install ruby 2.5.0
echo Phase 4: Installation de Ruby
echo $HOME
rm -rf $HOME/.rbenv 2>/dev/null;git clone https://github.com/rbenv/ruby-build.git $HOME/.rbenv/plugins/ruby-build || exit 301
git clone https://github.com/rbenv/ruby-build.git $HOME/.rbenv/plugins/ruby-build || exit 301
pwd
cd $HOME/.rbenv || exit 302
cd $HOME/.rbenv && rbenv install 2.5.0 || exit 303