Update nodemgmt-scripts.sh

This commit is contained in:
2024-11-29 16:06:44 -06:00
parent 8a162ee0ab
commit 9b42ff1318

View File

@@ -1301,7 +1301,7 @@ GUI(){
if [ ! -f ${NM_TMPFOLDER}/.statusclean ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.statusclean)) -ge 900 ]; then
for oldstatus_check in ${NM_TMPFOLDER}/status-*; do
echo -n "HERE: ${oldstatus_check} === "
if ! [[ "${oldstatus_check}" =~ *".stuck"* ]]; then
if ! [[ "${oldstatus_check}" =~ ".stuck" ]]; then
echo -n "not stuck - "
if [ $(expr $(date +%s) - $(stat -c %Y ${oldstatus_check})) -ge 60 ]; then
echo "removing"