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.
|
- #!/usr/bin/env bash
- if [[ $# -ne 1 || "$1" == @(--help|-h) ]]; then
- printf 'Usage: ia-derive ITEM\n' >&2
- exit 1
- fi
-
- 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
|