From 632ce914815cce29a4b4b3f3cb117a2e06ba090d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 11:18:11 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 3dc97f4f..5c10c3c3 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -28,7 +28,11 @@ STATUS() { for rcheck in "${REPL_CHECK[@]}"; do ${NCMD} rm -f ${FOLDER}/test.repl daterun=`date +%Y-%m-%d-%H-%M` - ${NCMD} 'echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl' + if [ "${NCMD}" = "" ]; then + echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl + else + ${NCMD} 'echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl' + fi yes | ${NCMD} cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl done fi