Commit e4a5b320 authored by vipwzw's avatar vipwzw Committed by 33cn

auto ci

parent 3a37885b
...@@ -122,12 +122,12 @@ function copyErrLogs() { ...@@ -122,12 +122,12 @@ function copyErrLogs() {
oldIFS=$IFS oldIFS=$IFS
IFS=// IFS=//
# shellcheck disable=SC2207 # shellcheck disable=SC2207
arrpwd=( $( pwd ) ) arrpwd=($(pwd))
if [ ${#arrpwd[@]} -ge 3 ]; then if [ ${#arrpwd[@]} -ge 3 ]; then
i=$(( ${#arrpwd[@]}-3 )) i=$((${#arrpwd[@]} - 3))
# shellcheck disable=SC2116 # shellcheck disable=SC2116
# shellcheck disable=SC2086 # shellcheck disable=SC2086
dockerName=$( echo ${arrpwd[$i]} ) dockerName=$(echo ${arrpwd[$i]})
docker cp "${dockerName}_chain33_1":/root/logs/chain33.log "$dirName/rpc_chain33.log" docker cp "${dockerName}_chain33_1":/root/logs/chain33.log "$dirName/rpc_chain33.log"
fi fi
IFS=$oldIFS IFS=$oldIFS
......
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