diff --git a/glances-install.sh b/glances-install.sh index 3e9e02b..7fc4fcb 100644 --- a/glances-install.sh +++ b/glances-install.sh @@ -11,8 +11,11 @@ Red='\033[10;31m' LRed='\033[1;31m' #echo -e "${Green}TEST${Color_Off}" +echo -e "${BOrange}Preparinfg to install Glances${Color_Off}" +echo "" + if hash glances 2>/dev/null; then - echo -e "${Green}Uninstalling previous Glances install and dependencies...{Color_Off}" + echo -e "${Green}Uninstalling previous Glances install and dependencies...${Color_Off}" pip uninstall glances[action,batinfo,browser,cpuinfo,chart,docker,export,folders,gpu,ip,raid,snmp,web,wifi] fi @@ -45,7 +48,7 @@ do_with_root() { echo "sudo $*" sudo $* else - echo "Please run this script as root." + echo -e "${BOrange}Please run this script as root.${Color_Off}" exit 1 fi } @@ -62,8 +65,8 @@ else distrib_name=${BASH_REMATCH[1]} break else - echo -e "Sorry, GlancesAutoInstall script is not compliant with your system." - echo -e "Please read: https://github.com/nicolargo/glances#installation" + echo -e "${BOrange}Sorry, GlancesAutoInstall script is not compliant with your system.${Color_Off}" + echo -e "${BOrange}Please read: https://github.com/nicolargo/glances#installation${Color_Off}" exit 1 fi done