mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
13 lines
No EOL
217 B
Bash
Executable file
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 |