mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
added a check for prereq into deploycc script (#884)
Signed-off-by: Parameswaran Selvam <parselva@in.ibm.com> Signed-off-by: Parameswaran Selvam <parselva@in.ibm.com>
This commit is contained in:
parent
a96efaebde
commit
f838d6b5a8
1 changed files with 15 additions and 0 deletions
|
|
@ -122,6 +122,21 @@ packageChaincode() {
|
|||
successln "Chaincode is packaged"
|
||||
}
|
||||
|
||||
function checkPrereqs() {
|
||||
jq --version > /dev/null 2>&1
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
errorln "jq command not found..."
|
||||
errorln
|
||||
errorln "Follow the instructions in the Fabric docs to install the prereqs"
|
||||
errorln "https://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
#check for prerequisites
|
||||
checkPrereqs
|
||||
|
||||
## package the chaincode
|
||||
packageChaincode
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue