The little things give you away... A collection of various small helper stuff
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.
|
- #!/bin/bash
- # Wait until an item has no outstanding tasks
- # Usage: ia-wait-item-tasks IDENTIFIER
- if [[ $# -ne 1 ]]
- then
- echo 'Usage: ia-wait-item-tasks IDENTIFIER'
- exit 1
- fi
-
- set -e
-
- while :
- do
- out="$(ia tasks "$1")"
- if ! grep -Fvq ' "finished": ' <<<"${out}"
- then
- break
- fi
- sleep 60
- done
|