Update installChaincode.sh

fix script typo

Signed-off-by: jchen8tw <11806483+jchen8tw@users.noreply.github.com>
This commit is contained in:
Justin Chen 2020-08-13 20:20:32 +08:00 committed by jchen8tw
parent 044e5b78ef
commit 000bbe9315

View file

@ -8,7 +8,7 @@ set -e
echo "========= Installing the newest version of chaincode ================" echo "========= Installing the newest version of chaincode ================"
echo "Chaincode name: $CHAINCODE_NAME" echo "Chaincode name: $CHAINCODE_NAME"
peer lifecycle chaincode package "chaincode/$CHAINCODE_NAME/go/$CHAINCODE_PACKAGE_NAME" -p "chaincode/$CHAINCODE_NAME/go" --label $CHAINCODE_NAME -l node peer lifecycle chaincode package "chaincode/$CHAINCODE_NAME/go/$CHAINCODE_PACKAGE_NAME" -p "chaincode/$CHAINCODE_NAME/go" --label $CHAINCODE_NAME
peer lifecycle chaincode install "chaincode/$CHAINCODE_NAME/go/$CHAINCODE_PACKAGE_NAME" peer lifecycle chaincode install "chaincode/$CHAINCODE_NAME/go/$CHAINCODE_PACKAGE_NAME"
CC_PACKAGE_ID=$(peer lifecycle chaincode queryinstalled | tail -n 1 |awk '{print $3}' | tr -d ",") CC_PACKAGE_ID=$(peer lifecycle chaincode queryinstalled | tail -n 1 |awk '{print $3}' | tr -d ",")