Skip to content

Commit d1a950a

Browse files
committed
Replace hardcoded path with RVM init script
1 parent cac52e1 commit d1a950a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rails-install-fedora.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ echo "Installs text editor"
2727
sudo yum install gedit -y
2828

2929
# Make sure RVM, Ruby and Rails are on the user's path
30-
echo "export PATH=$HOME/.rvm/bin:$HOME/.rvm/gems/ruby-1.9.3-p392/bin:\$PATH # Added by Rails Girls install script" >> ~/.bashrc
30+
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
31+
set +e
3132
source ~/.bashrc
33+
set -e
3234

3335
echo -n "Should be sqlite 3.7.3 or higher: sqlite "
3436
sqlite3 --version

0 commit comments

Comments
 (0)