mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-26 03:25:09 +00:00
test-network: Make the regexp of checking version more strict
Signed-off-by: Justin Yang <justin.yang@themedium.io>
This commit is contained in:
parent
d81684fa0a
commit
ecacb9fe43
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