您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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