Commit 3a37885b authored by QM's avatar QM Committed by 33cn

add x2eth copyErrLogs

parent 5da62c66
...@@ -118,7 +118,19 @@ function copyErrLogs() { ...@@ -118,7 +118,19 @@ function copyErrLogs() {
for name in A B C D; do for name in A B C D; do
cp "./x2ethereum/$name/ebrelayer.log" "$dirName/rpc_ebrelayer$name.log" cp "./x2ethereum/$name/ebrelayer.log" "$dirName/rpc_ebrelayer$name.log"
done done
docker cp "${NODE3}":/root/logs/chain33.log "$dirName/rpc_chain33.log"
oldIFS=$IFS
IFS=//
# shellcheck disable=SC2207
arrpwd=( $( pwd ) )
if [ ${#arrpwd[@]} -ge 3 ]; then
i=$(( ${#arrpwd[@]}-3 ))
# shellcheck disable=SC2116
# shellcheck disable=SC2086
dockerName=$( echo ${arrpwd[$i]} )
docker cp "${dockerName}_chain33_1":/root/logs/chain33.log "$dirName/rpc_chain33.log"
fi
IFS=$oldIFS
fi fi
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment