Browse Source

Add ia-wait-item-tasks

master
JustAnotherArchivist 2 years ago
parent
commit
c9c8b7e1f7
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      ia-wait-item-tasks

+ 13
- 0
ia-wait-item-tasks View File

@@ -0,0 +1,13 @@
#!/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

while ia tasks "$1" | grep -Fvq ' "finished": '
do
sleep 60
done

Loading…
Cancel
Save