UNPKG

303 Bapplication/x-shView Raw
1#! /bin/bash
2
3completed_key="${1:-"100.00"}"
4for task in $(acurl -s chillastic.groupbycloud.com/tasks | jq 'to_entries[] | select(.value.percentComplete == "'"${completed_key}"'") | .key'); do
5 id="$(echo ${task} | cut -c2-34)"
6 acurl -s "chillastic.groupbycloud.com/tasks/${id}" -XDELETE | jq .
7done