mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-21 17:15:10 +00:00
test-network: Make the regexp of checking version more strict (#515)
Signed-off-by: Justin Yang <justin.yang@themedium.io>
This commit is contained in:
parent
3ba21b4f11
commit
d47b2c286a
1 changed files with 2 additions and 2 deletions
|
|
@ -53,8 +53,8 @@ function checkPrereqs() {
|
||||||
fi
|
fi
|
||||||
# use the fabric tools container to see if the samples and binaries match your
|
# use the fabric tools container to see if the samples and binaries match your
|
||||||
# docker images
|
# docker images
|
||||||
LOCAL_VERSION=$(peer version | sed -ne 's/ Version: //p')
|
LOCAL_VERSION=$(peer version | sed -ne 's/^ Version: //p')
|
||||||
DOCKER_IMAGE_VERSION=$(docker run --rm hyperledger/fabric-tools:latest peer version | sed -ne 's/ Version: //p' | head -1)
|
DOCKER_IMAGE_VERSION=$(docker run --rm hyperledger/fabric-tools:latest peer version | sed -ne 's/^ Version: //p')
|
||||||
|
|
||||||
infoln "LOCAL_VERSION=$LOCAL_VERSION"
|
infoln "LOCAL_VERSION=$LOCAL_VERSION"
|
||||||
infoln "DOCKER_IMAGE_VERSION=$DOCKER_IMAGE_VERSION"
|
infoln "DOCKER_IMAGE_VERSION=$DOCKER_IMAGE_VERSION"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue