Update glances-install.sh

This commit is contained in:
2018-03-19 21:21:53 -05:00
parent 0456e2f6c7
commit b38410253b

View File

@@ -11,6 +11,8 @@ Red='\033[10;31m'
LRed='\033[1;31m' LRed='\033[1;31m'
#echo -e "${Green}TEST${Color_Off}" #echo -e "${Green}TEST${Color_Off}"
function join_by { local IFS="$1"; shift; echo "$*"; }
# Execute a command as root (or sudo) # Execute a command as root (or sudo)
do_with_root() { do_with_root() {
# already root? "Just do it" (tm). # already root? "Just do it" (tm).
@@ -120,11 +122,8 @@ exitstatus=$?
if [ $exitstatus = 0 ]; then if [ $exitstatus = 0 ]; then
do_with_root pip install --upgrade pip do_with_root pip install --upgrade pip
DEPS=$(join_by , $DEPS)
for DEP in $DEPS do_with_root pip install $DEPS
do
do_with_root pip install $DEP
done
fi fi
# Install or ugrade Glances from the Pipy repository # Install or ugrade Glances from the Pipy repository