mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Fix deployment of chaincode with higher version than 9 issue (#243)
This script fails if chaincode version is higher than 9 as 'grep' does not match ex. version equal to '10' Signed-off-by: Titas <titas.petravicius@gmail.com> Signed-off-by: lehors <lehors@us.ibm.com> Co-authored-by: Arnaud J Le Hors <lehors@us.ibm.com>
This commit is contained in:
parent
c0ffb1cffb
commit
0031db5de2
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ queryCommitted() {
|
|||
peer lifecycle chaincode querycommitted --channelID $CHANNEL_NAME --name ${CC_NAME} >&log.txt
|
||||
res=$?
|
||||
set +x
|
||||
test $res -eq 0 && VALUE=$(cat log.txt | grep -o '^Version: '$CC_VERSION', Sequence: [0-9], Endorsement Plugin: escc, Validation Plugin: vscc')
|
||||
test $res -eq 0 && VALUE=$(cat log.txt | grep -o '^Version: '$CC_VERSION', Sequence: [0-9]*, Endorsement Plugin: escc, Validation Plugin: vscc')
|
||||
test "$VALUE" = "$EXPECTED_RESULT" && let rc=0
|
||||
COUNTER=$(expr $COUNTER + 1)
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue