Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-26 18:30:16 -05:00
parent 7685d130b2
commit 6e2482d678

View File

@@ -564,9 +564,11 @@ STATUS(){
[ "${ST_ACTION}" != "check" ] && echo -en " ${idsCL[LightCyan]}Getting drives from server ... ${idsCL[Default]}"
declare -A partitions
DRIVEINFO=$(ssh root@${host_ip[$hostid]} df -BM | grep -vE '^Filesystem|tmpfs|cdrom|@|ram|loop|udev|veeamimage|nvme|localhost|shm|mmcblk|overlay|-volume|Music|Software' | awk '{ print $1 " " $2 " " $4 }')
echo $DRIVEINFO
DRIVEINFO=(${DRIVEINFO})
echo -en "\e[1A";
echo -e "\e[0K\r"qqqaqq
echo $DRIVEINFO
# echo -en "\e[1A";
# echo -e "\e[0K\r"
NUMDRIVES=$((${#DRIVEINFO[@]} / 3))
for ((i = 0 ; i <= $((${NUMDRIVES}-1)) ; i++)); do