Skip to content

Commit 6e51f08

Browse files
committed
Dealing with some OSX inherited stuff that does not seem to fit in ubuntu (bash-rvm integration & brew)
1 parent be12567 commit 6e51f08

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

rails-install-ubuntu.sh

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ sudo apt-get install imagemagick --fix-missing -y
1111

1212
echo "Installs RVM (Ruby Version Manager) for handling Ruby installation"
1313
curl -L get.rvm.io | bash -s stable
14-
echo "
15-
# RVM
16-
[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.bash_profile
17-
source ~/.bash_profile
14+
# RVM integration with bash in OSX is like
15+
# echo "
16+
# [[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.bash_profile
17+
# source ~/.bash_profile
18+
19+
# RVM integration with bash in Ubuntu is like
20+
# echo "
21+
# [[ -s '$HOME/.rvm/scripts/rvm' ]] && source '$HOME/.rvm/scripts/rvm'" >> ~/.bashrc
22+
# But is done automagically by rvm itself
23+
24+
source ~/.bashrc
1825

1926
echo "Installs Ruby"
2027
rvm install 1.9.3-p125
@@ -29,8 +36,10 @@ sudo apt-get install gedit -y
2936
echo -e "\n- - - - - -\n"
3037
echo -e "Now we are going to print some information to check that everything is done:\n"
3138

32-
echo -n "Should be brew 0.8 or higher: brew "
33-
brew -v
39+
# brew in ubuntu?
40+
# echo -n "Should be brew 0.8 or higher: brew "
41+
# brew -v
42+
3443
echo -n "Should be sqlite 3.7.3 or higher: sqlite "
3544
sqlite3 --version
3645
echo -n "Should be rvm 1.6.32 or higher: "

0 commit comments

Comments
 (0)