From b3bff2d28dcf7174ad1f0fffe163dae40a8e3d2e Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Mon, 3 Mar 2014 14:52:49 +0530 Subject: [PATCH] Check and Install bc command --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.sh b/install.sh index c6a10fa7..dd08b79e 100644 --- a/install.sh +++ b/install.sh @@ -69,6 +69,14 @@ then apt-get -y install ed &>> $INSTALLLOG || OwnError "Unable to install ed" fi +# Checking Bc +if [ ! -x /usr/bin/bc ] +then + echo -e "\033[31mBc Command Not Found\e[0m" | tee -ai $INSTALLLOG + echo -e "\033[34mInstalling Bc, Please Wait...\e[0m" | tee -ai $INSTALLLOG + apt-get -y install bc &>> $INSTALLLOG || OwnError "Unable to install bc" +fi + # Checking Wget if [ ! -x /usr/bin/wget ] then