Update test.sh
This commit is contained in:
5
test.sh
5
test.sh
@@ -30,10 +30,11 @@ for rcheck in "${REPL_CHECK[@]}"; do
|
|||||||
daterun=`date +%Y-%m-%d-%H-%M-%S`
|
daterun=`date +%Y-%m-%d-%H-%M-%S`
|
||||||
if [ "${NCMD}" = "" ]; then
|
if [ "${NCMD}" = "" ]; then
|
||||||
echo -e "iDS-Node${nid} (${nip})\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
|
else
|
||||||
${NCMD} 'echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl'
|
${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
|
fi
|
||||||
yes | ${NCMD} cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl
|
|
||||||
echo "${FOLDER}/test.repl"
|
echo "${FOLDER}/test.repl"
|
||||||
${NCMD} cat ${FOLDER}/test.repl
|
${NCMD} 'cat ${FOLDER}/test.repl'
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user