Update status.inc

This commit is contained in:
2023-12-06 21:02:15 -06:00
parent 349b015d71
commit 7554bbcefb

View File

@@ -147,11 +147,13 @@ STATUS(){
nc_count=0; completed=false
until [ "${completed}" == "true" ]; do
for nodestatus in ${STATUSRUN_TMPFOLDER}/status-check.*.done; do
NTS=$(grep -oP '(?<=status-check.).*?(?=.done)' <<< "${nodestatus}")
# echo -e "$(cat ${STATUSRUN_TMPFOLDER}/status-check.${NTS}.running)"
rm -f ${STATUSRUN_TMPFOLDER}/status-check.${NTS}.done
((nc_count++))
echo "${NTS} == ${nc_count} == ${nodestatus}"
if [ "${nodestatus}" != "*" ]; then
NTS=$(grep -oP '(?<=status-check.).*?(?=.done)' <<< "${nodestatus}")
# echo -e "$(cat ${STATUSRUN_TMPFOLDER}/status-check.${NTS}.running)"
rm -f ${STATUSRUN_TMPFOLDER}/status-check.${NTS}.done
((nc_count++))
echo "${NTS} == ${nc_count} == ${nodestatus}"
fi
done
[ ${nc_count} -eq ${#ntypesel[@]} ] && completed=true || sleep 1s
done