Update test.sh

This commit is contained in:
2019-02-07 11:48:15 -06:00
parent 00d712ec16
commit b984eb4242

View File

@@ -29,10 +29,10 @@ for rcheck in "${REPL_CHECK[@]}"; do
${NCMD} rm -f ${FOLDER}/test.repl
daterun=`date +%Y-%m-%d-%H-%M-%S`
if [ "${NCMD}" = "" ]; then
echo -e "Status-Check (${NODE_HOSTNAME})\n${daterun}" > ${FOLDER}/test.repl
echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl
yes | cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl
else
${NCMD} 'echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl'
${NCMD} 'echo -e "Status-Check (${NODE_HOSTNAME})\n${daterun}" > ${FOLDER}/test.repl'
# yes | ${NCMD} 'cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl'
fi
echo "${FOLDER}/test.repl"