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.
 
 
 

8 lines
467 B

  1. #!/usr/bin/env bash
  2. if [[ $# -ne 1 || "$1" == @(--help|-h) ]]; then
  3. printf 'Usage: ia-derive ITEM\n' >&2
  4. exit 1
  5. fi
  6. exec "$(cd "$(dirname "$0")"; pwd -P)/curl-ia" header --silent --user-agent 'little-things +https://gitea.arpa.li/JustAnotherArchivist/little-things' --header 'Content-Type: application/json' --data "$(jq --arg identifier "$1" --null-input --compact-output '{"cmd": "derive.php", "identifier": $identifier}')" https://archive.org/services/tasks.php