fabric-samples/asset-transfer-basic/chaincode-external/sampleBuilder/bin/detect
Chongxin Luo 0651d9e483 Add chaincode-external for asset-transfer-basic sample.
Signed-off-by: Chongxin Luo <Chongxin.Luo@ibm.com>
2020-07-30 12:48:24 -04:00

13 lines
No EOL
217 B
Bash
Executable file

#!/bin/bash
echo "!! DL detect script invoked"
set -euo pipefail
METADIR=$2
#check if the "type" field is set to "external"
if [ "$(jq -r .type "$METADIR/metadata.json")" == "external" ]; then
exit 0
fi
exit 1