diff options
Diffstat (limited to 'tests/fixtures/verify-entity-download.sh')
-rwxr-xr-x | tests/fixtures/verify-entity-download.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/fixtures/verify-entity-download.sh b/tests/fixtures/verify-entity-download.sh index 5f68ba2..79b2f94 100755 --- a/tests/fixtures/verify-entity-download.sh +++ b/tests/fixtures/verify-entity-download.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Fetches release entities references in VERIFY. +# Fetches release entity references and caches them locally. set -e -u set -o pipefail @@ -8,8 +8,9 @@ set -o pipefail API="https://api.fatcat.wiki/v0" CSV="verify.csv" -for ident in $(awk '{print $3"\n"$4}' "$CSV"); do +for ident in $(awk -F, '{print $1"\n"$2}' "$CSV"); do if [ -f "$ident" ]; then + >&2 echo "[cached] $ident" continue fi curl -sL --fail "$API/release/$ident" | jq --sort-keys . >"$ident" |