From 9b841ad8101332af2cfda742c4bd0bd2ce867b45 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 11 Jun 2022 22:38:15 -0500 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 cfa5858b..e38fcf8a 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1843,7 +1843,7 @@ if [ ${action-x} ]; then status) if [ -f "${FOLDER}/status-check.running" ]; then echo 'yes1' - if [ `stat --format=%Y "${FOLDER}/status-check.running"` -gt $(( `date +%s` - 300 )) ]; then + if [ $(`stat --format=%Y "${FOLDER}/status-check.running"`) -lt $((`date +%s` - 300)) ]; then echo 'yes2' rm -f "${FOLDER}/status-check.running" else