You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

replay_batch.sh 297B

123456789101112131415
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. DUMP_DIR="/tmp/batch_dumps"
  4. SQ_ROOT_URL="http://localhost:9000"
  5. cd $DUMP_DIR
  6. for file in *.zip; do
  7. base=${file%.zip}
  8. url=$(cat ${base}.txt)
  9. echo "base=$base, url=$url"
  10. curl -u admin:admin -F report=@$DUMP_DIR/${base}.zip ${SQ_ROOT_URL}${url}
  11. done