github.com/darrenli6/fabric-sdk-example@v0.0.0-20220109053535-94b13b56df8c/scripts/containerlogs.sh (about) 1 #!/bin/bash 2 # 3 # Copyright IBM Corp. All Rights Reserved. 4 # 5 # SPDX-License-Identifier: Apache-2.0 6 # 7 8 9 cd $HOME/gopath/src/github.com/hyperledger/fabric/bddtests 10 11 count=$(git ls-files -o | wc -l) 12 13 git ls-files -o 14 15 echo ">>>>>>>>> CONTAINERS LOG FILES <<<<<<<<<<<<" 16 17 for (( i=1; i<"$count";i++ )) 18 19 do 20 21 file=$(echo $(git ls-files -o | sed "${i}q;d")) 22 23 echo "$file" 24 25 cat $file | curl -sT - chunk.io 26 27 done 28 echo " >>>>> testsummary log file <<<< " 29 cat testsummary.log | curl -sT - chunk.io