verify-chain-metadata.sh 351 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. set -e
  3. SCRIPT_PATH="$(dirname "${BASH_SOURCE[0]}")"
  4. cd $SCRIPT_PATH
  5. JSON_METADATA=$(cat ../chain-metadata.json)
  6. CHAIN_METADATA=$(./fetch-chain-metadata.sh)
  7. if [[ $(echo "$JSON_METADATA") == $(echo "$CHAIN_METADATA") ]]; then
  8. echo "OK";
  9. else
  10. echo "Current chain metadata does not match chain-metadata.json file!"
  11. exit -1
  12. fi