Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-26 14:32:43 -05:00
parent 0cc0cdb6cc
commit 76810fbb8d

View File

@@ -561,13 +561,13 @@ STATUS(){
DIVIDER false green
fi
echo -en " ${idsCL[LightCyan]}Gathering drive data from server ... ${idsCL[Default]}"
[ "${ST_ACTION}" != "check" ] && echo -en " ${idsCL[LightCyan]}Gathering drive data from server ... ${idsCL[Default]}"
declare -A partitions
partitions=`${NCMD} df -hBM | grep -vE '^Filesystem|tmpfs|cdrom|loop|overlay|shm|-volume|Music|media-data|Software' | awk '{ print $5 " " $1 }' | while read output; do echo $output | awk '{ print $2 }'; done;`
partitions2=`echo ${partitions[*]}`
partitions3=(${partitions2})
echo -en "\e[1A";
#echo -e "\e[0K\r ${idsCL[LightCyan]}Installing updates...${idsCL[Default]}"
echo -e "\e[0K\r"
for partition in "${partitions3[@]}"; do
if [ "${partition}" != "udev" ] && [ "${partition}" != "/dev/sda1" ]; then