From 9843dad47fb281c11c652447ea527a3eff83fbf2 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 13:07:09 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 3361e853..42eeac39 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -119,7 +119,8 @@ STATUS() { else checked="`ssh root@10.5.10.51 \"ssh root@${nip} \"cat ${REPL_CHECKS[${rcheck}]}/test.repl\" | diff - ${REPL_CHECKS[${rcheck}]}/test.repl\"`" fi - if [ "`date +%s`" -gt "$timeout" ]; then + cdate=`date +%s` + if [ "${cdate}" -gt "$timeout" ]; then timeout=true break fi