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