cfg.sh 314 B

123456789
  1. STORESERVER='http://127.0.0.1:28080/config/storeserver.php'
  2. function update_conf() {
  3. curl -s -F action=LIST_STORE -F store_server_name=%de% -F format=cfg ${STORESERVER} \
  4. | grep -E '^Attr.*' | sed "s/.*='//; s/'$//" \
  5. | awk -F'/' '$1 == "job" {printf(" download %s\n", $2)}' \
  6. | xargs echo './job' \
  7. | bash
  8. }