Update test.sh

This commit is contained in:
2019-02-07 11:45:11 -06:00
parent 47a2ed2110
commit 45d301044e

View File

@@ -30,10 +30,11 @@ for rcheck in "${REPL_CHECK[@]}"; do
daterun=`date +%Y-%m-%d-%H-%M-%S`
if [ "${NCMD}" = "" ]; then
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'
yes | ${NCMD} 'cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl'
fi
yes | ${NCMD} cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl
echo "${FOLDER}/test.repl"
${NCMD} cat ${FOLDER}/test.repl
${NCMD} 'cat ${FOLDER}/test.repl'
done