From 34a4fe08d3cc21c9c8761bdacaaba2a566e78d00 Mon Sep 17 00:00:00 2001 From: SamYuan1990 Date: Tue, 30 Jun 2020 21:05:03 +0800 Subject: [PATCH] fix up for test network replace duplicate peer version by which peer remove un used config folder check Signed-off-by: SamYuan1990 --- test-network/network.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-network/network.sh b/test-network/network.sh index c48861e8..624ea74c 100755 --- a/test-network/network.sh +++ b/test-network/network.sh @@ -88,10 +88,10 @@ BLACKLISTED_VERSIONS="^1\.0\. ^1\.1\. ^1\.2\. ^1\.3\. ^1\.4\." # of go or other items could be added. function checkPrereqs() { ## Check if your have cloned the peer binaries and configuration files. - peer version > /dev/null 2>&1 + which peer - if [[ $? -ne 0 || ! -d "../config" ]]; then - echo "ERROR! Peer binary and configuration files not found.." + if [ "$?" -ne 0 ]; then + echo "ERROR! Peer binary not found..." echo echo "Follow the instructions in the Fabric docs to install the Fabric Binaries:" echo "https://hyperledger-fabric.readthedocs.io/en/latest/install.html"