Update Install.sh
This commit is contained in:
parent
7202dd5c95
commit
fe2cb36701
1 changed files with 2 additions and 3 deletions
|
@ -83,7 +83,7 @@ if [ -f /usr/bin/motd ]
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "Do you wish to install the missing package before \n --> apt-get install ntp figlet ? (y/n)? "
|
echo -e "\nDo you wish to install the required package?\n --> apt-get install ntp figlet ? (y/n) "
|
||||||
old_stty_cfg=$(stty -g)
|
old_stty_cfg=$(stty -g)
|
||||||
stty raw -echo
|
stty raw -echo
|
||||||
answer=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done )
|
answer=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done )
|
||||||
|
@ -93,14 +93,13 @@ if echo "$answer" | grep -iq "^y" ;then
|
||||||
echo -e "\n\e[92m apt-get installation \e[0m Succesfull \n"
|
echo -e "\n\e[92m apt-get installation \e[0m Succesfull \n"
|
||||||
else
|
else
|
||||||
echo -e "\n Continue the script (y/n)? "
|
echo -e "\n Continue the script (y/n)? "
|
||||||
old_stty_cfg=$(stty -g)
|
|
||||||
stty raw -echo
|
|
||||||
answer2=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done )
|
answer2=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done )
|
||||||
if echo "$answer2" | grep -iq "^y" ;then
|
if echo "$answer2" | grep -iq "^y" ;then
|
||||||
echo -e "\n1.\e[92m ok no apt-get required \e[0m Installation continue... \n"; make install
|
echo -e "\n1.\e[92m ok no apt-get required \e[0m Installation continue... \n"; make install
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo -e "\n1.\e[92m ok no apt-get required \e[0m Installation continue... \n"; make install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue