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