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