fabric-samples/asset-transfer-basic/chaincode-external/sampleBuilder/bin/detect
Dereck e2817762f1
Add chaincode-external for asset-transfer-basic sample. (#234)
Signed-off-by: Chongxin Luo <Chongxin.Luo@ibm.com>
2020-08-06 02:12:12 +02: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