From bd121063081c486432ad98758a27477391c506d2 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Mon, 25 Mar 2013 12:24:04 +0530 Subject: [PATCH] Install WP-CLI --- install.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index c51a6610..173d113b 100644 --- a/install.sh +++ b/install.sh @@ -70,10 +70,20 @@ fi if [ ! -x /usr/bin/git ] then echo -e "\033[31m Git Command Not Found !! \e[0m" - echo -e "\033[34m Installing Git \e[0m" + echo -e "\033[34m Installing Git, Please Wait... \e[0m" sudo apt-get -y install git-core || OwnError "Unable To Install Git" fi +# Checking WP-CLI +if [ ! -d /root/wp-cli ] +then + echo -e "\033[31m WP Command Not Found !! \e[0m" + echo -e "\033[34m Installing WP-CLI, Please Wait... \e[0m" + git clone git://github.com/wp-cli/wp-cli.git /root/wp-cli + cd /root/wp-cli + sudo utils/dev-build +fi + # Pre Checks End