distribute-devnet-consts.sh 507 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. # copy devnet-consts.json to chain dirs for local use, so we can keep docker
  4. # build contexts scoped to the chain, rather than the root just to read this file.
  5. file="./scripts/devnet-consts.json"
  6. paths=(
  7. ./terra2/tools/
  8. ./wormchain/contracts/tools/
  9. )
  10. for dest in "${paths[@]}"; do
  11. dirname=$(dirname $dest)
  12. if [[ -d "$dirname" ]]; then
  13. echo "copying $file to $dest"
  14. cp $file $dest
  15. fi
  16. done
  17. echo "distribute devnet consts complete!"