mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
The external builders will build and launch binary chaincode instead of docker containers. Signed-off-by: Chris Elder <celder628@gmail.com>
11 lines
No EOL
250 B
Bash
Executable file
11 lines
No EOL
250 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
set -euo pipefail
|
|
exec 1>&2
|
|
CHAINCODE_METADATA_DIR="$2"
|
|
if [ "$(jq -r .type "${CHAINCODE_METADATA_DIR}/metadata.json" | tr '[:upper:]' '[:lower:]')" = "golang" ]; then
|
|
exit 0
|
|
fi
|
|
exit 1 |