From e22ffac1ac3cddd8539f10082d552e53bee9f816 Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Fri, 21 Jul 2017 01:25:35 +0200 Subject: [PATCH] Update install.sh --- install.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index 26cae05..2cc816a 100755 --- a/install.sh +++ b/install.sh @@ -72,12 +72,11 @@ then echo "cat /etc/motd" >> /root/.bashrc echo -e "\e[92m Code bash added.\e[0m" else - echo "Code bash found" -grep '/etc/motd' /root/.bashrc + echo "Code bash found" ; grep '/etc/motd' /root/.bashrc #sed -i '/cat \/etc\/motd/d' /root/.bashrc #echo -e "\e[92m Code .bashrc remove.\e[0m" fi -echo -ne '\e[0m## (10%)\r' +echo -ne '\e[0m## (10%)\r' sleep 1 echo -e "\n\n" ## Insdtall modules @@ -101,7 +100,7 @@ if [ -f /usr/bin/motd ] fi echo -e " -->\e[34m Copy files OK\n" -echo -ne '\e[0m######### (50%)\r' +echo -ne '\e[0m#########(50%)\r' sleep 1 echo -ne "\n" echo -e "\nDo you wish to install the required package?\n \e[0m --> apt-get install ntp figlet ? (y/n) " @@ -110,17 +109,17 @@ stty raw -echo answer=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done ) stty $old_stty_cfg if echo "$answer" | grep -iq "^y" ;then - echo -e "\n\e[34m1.\e[92m apt-get install \e[0m ntp figlet \e[94m start\e[0m\n" ; apt-get install -y ntp figlet; + echo -e "\n\e[92m apt-get install \e[0m ntp figlet \e[94m start\e[0m\n" ; apt-get install -y ntp figlet; echo -e "\n\e[92mapt-get installation\e[0m Succesfull" if [ -f /usr/bin/motds32 ] then - echo -e "\nMake file done.\n" + echo -e "\n\e[92m Make file done.\n" else make install - echo -e "\nMake file done.\n" + echo -e "\n\e[92m Make file done.\n" fi else -echo -e "\nDo you want to continue this installation? (y/n)\n " +echo -e "\n\e[34mDo you want to continue this installation? (y/n)\n " old2_stty_cfg=$(stty -g) stty raw -echo answer2=$( while ! head -c 2 | grep -i '[ny]' ;do true ;done ) @@ -159,7 +158,7 @@ fi ## Generate first stats /usr/bin/motds32 -g -echo -ne '\n\e[0m####################### (100%)\r\n\n' +echo -ne '\n\e[0m#######################(100%)\r\n\n' echo -e "\n\e[34m \e[92m Installation of MOTDs32 completed!\e[0m \n\nUse: /usr/bin/motds32 for help\n" exit 0