The little things give you away... A collection of various small helper stuff
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

21 行
297 B

  1. #!/bin/bash
  2. # Wait until an item has no outstanding tasks
  3. # Usage: ia-wait-item-tasks IDENTIFIER
  4. if [[ $# -ne 1 ]]
  5. then
  6. echo 'Usage: ia-wait-item-tasks IDENTIFIER'
  7. exit 1
  8. fi
  9. set -e
  10. while :
  11. do
  12. out="$(ia tasks "$1")"
  13. if ! grep -Fvq ' "finished": ' <<<"${out}"
  14. then
  15. break
  16. fi
  17. sleep 60
  18. done