Update status.inc

This commit is contained in:
2024-01-11 11:30:04 -06:00
parent b2446932f0
commit eb9d51fc50

View File

@@ -332,9 +332,13 @@ It was down for $(SHOW_TIME $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${
if [ $(${PH_CMD} ls ${NM_REPL_CHECK_LOC[${rcheck}]}/test.*.repl 2>/dev/null | wc -l) -gt 0 ]; then
for replfile in $(${PH_CMD} ls ${NM_REPL_CHECK_LOC[${rcheck}]}/test.*.repl); do
echo -en "${replfile} : "
[ $(expr $(date +%s) - $(${PH_CMD} stat -c %Y ${replfile})) -ge 1200 ] && echo "Removing" || echo "Not Removing"
if [ $(expr $(date +%s) - $(${PH_CMD} stat -c %Y ${replfile})) -ge 1200 ]; then
${PH_CMD} rm -f ${replfile} &
echo "Removed"
else
echo "NOT removed"
fi
done
# rm -f ${NM_REPL_CHECK_LOC[${rcheck}]}/test.${STATUS_START//-/}.repl &
else
echo "no files found"
fi
@@ -343,7 +347,7 @@ It was down for $(SHOW_TIME $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${
fi
fi
done
# touch ${NM_TMPFOLDER}/.replclean
touch ${NM_TMPFOLDER}/.replclean
fi
fi