File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- echo -e " Alpaca says: Updating system..."
3+ ORANGE=" \033[38;5;208m"
4+ CLEAR=" \033[0;00m"
5+
6+ echo -e " $ORANGE Alpaca says: Updating system... $CLEAR "
47sudo apt-get update 1> /dev/null
58
69if [ $? -ne 0 ]
912 exit 1
1013fi
1114
12- echo -e " Alpaca says: Installing RVM..."
13- \c url -sSL https://get.rvm.io | bash 12 > /dev/null
15+ echo -e " $ORANGE Alpaca says: Installing RVM... $CLEAR "
16+ \c url -sSL https://get.rvm.io | bash 2 > /dev/null
1417
1518if [ $? -ne 0 ]
1619then
2124# need to reload to use rvm
2225rvm reload > /dev/null
2326
24- echo -e " Alpaca says: Installing ruby 2.4.1"
27+ echo -e " $ORANGE Alpaca says: Installing ruby 2.4.1 $CLEAR "
2528rvm install 2.4.1 2> /dev/null
2629
2730if [ $? -ne 0 ]
@@ -39,7 +42,7 @@ rvm gemset create rails5.1 --default > /dev/null
3942
4043rvm use 2.4.1@rails5.1 --default > /dev/null
4144
42- echo -e " Alpaca says: Installing rails 5.1.0"
45+ echo -e " $ORANGE Alpaca says: Installing rails 5.1.0 $CLEAR "
4346gem install rails -v 5.1 2> /dev/null
4447
4548if [ $? -ne 0 ]
4851 exit 1
4952fi
5053
51- echo -e " Alpaca says: Installing yarn..."
54+ echo -e " $ORANGE Alpaca says: Installing yarn... $CLEAR "
5255npm install --global yarn
5356
5457if [ $? -ne 0 ]
6063echo -e " Clear command files"
6164rm -rf alpaca-command
6265
63- echo -e " Success ! Have fun coding!"
66+ echo -e " \033[38;5;40mSuccess ! Have fun coding! $CLEAR "
You can’t perform that action at this time.
0 commit comments