From a284aecc226bc734b0b74cd126cc215ce74738e9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Dec 2023 11:05:45 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 3e322b45..2df3dac4 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -946,7 +946,7 @@ GUI(){ if [ ! -f ${NM_TMPFOLDER}/.statusclean ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.statusclean)) -ge 3600 ]; then for oldstatus_check in ${NM_TMPFOLDER}/*; do if [ -d "${oldstatus_check}" ]; then - osc=${oldstatus_check%/*} + osc=${oldstatus_check#*/} osc_time=$(expr $(date +%Y%m%d%H%M%S) - ${oldstatus_check//-/}) echo "(${oldstatus_check}) $(date +%Y%m%d%H%M%S) - ${oldstatus_check//-/} = ${osc_time}" fi