aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures/verify-entity-download.sh
blob: 5f68ba2e429b0f4e78c35e0ebc13e5bd94df2b2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
#
# Fetches release entities references in VERIFY.

set -e -u
set -o pipefail

API="https://api.fatcat.wiki/v0"
CSV="verify.csv"

for ident in $(awk '{print $3"\n"$4}' "$CSV"); do
	if [ -f "$ident" ]; then
		continue
	fi
	curl -sL --fail "$API/release/$ident" | jq --sort-keys . >"$ident"
done