From 0a78ce69bc37f2ad442ecf61d883402ed05d28ba Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Tue, 4 Mar 2014 12:32:45 +0530 Subject: [PATCH] EasyEngine Update: Fixed Issue #134 #148 --- usr/local/sbin/easyengine | 3 +-- usr/local/sbin/eeupdate | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index a862ce66..9d8b53a8 100644 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -2207,8 +2207,7 @@ then # Update EasyEngine echo -e "\033[34mChecking EasyEngine Update, Please Wait...\e[0m" - /bin/bash <(curl -sL https://raw.github.com/rtCamp/easyengine/stable/usr/local/sbin/eeupdate) && exit 0; - exit 0; + /bin/bash <(curl -sL https://raw.github.com/rtCamp/easyengine/stable/usr/local/sbin/eeupdate) else echo -e "\033[34mList Of Available Commands:\e[0m" diff --git a/usr/local/sbin/eeupdate b/usr/local/sbin/eeupdate index e58b1b92..a5035740 100644 --- a/usr/local/sbin/eeupdate +++ b/usr/local/sbin/eeupdate @@ -288,6 +288,11 @@ then echo -e "\033[34mFor EasyEngine (ee) Auto Completion Run Following Command\e[0m" | tee -ai $INSTALLLOG echo -e "\033[37msource /etc/bash_completion.d/ee\e[0m" | tee -ai $INSTALLLOG echo + echo -e "\033[34mEasyEngine (ee) Updated Successfully\e[0m" | tee -ai $INSTALLLOG + + echo -e "\033[34mKilling The Parent Process\e[0m" &>> $INSTALLLOG + ps ax | grep $PPID | grep -v grep &>> $INSTALLLOG + kill -9 $PPID else echo "EasyEngine Already Updated To The Latest Version"