diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index f7a02620..9012b5b5 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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"