diff options
Diffstat (limited to 'tests/fixtures/fetch.sh')
-rwxr-xr-x | tests/fixtures/fetch.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/fixtures/fetch.sh b/tests/fixtures/fetch.sh deleted file mode 100755 index 8b2ad02..0000000 --- a/tests/fixtures/fetch.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -# -# Fetches release entity mentioned in verify.csv and cache them locally. - -set -e -u -set -o pipefail - -API="https://api.fatcat.wiki/v0" -CSV="verify.csv" - -# Just release ATM, but could extend to other types. -mkdir -p release - -for ident in $(awk -F, '{print $1"\n"$2}' "$CSV"); do - dst="release/$ident" - if [ -f "$dst" ]; then - echo >&2 "[cached] $dst" - continue - fi - tempfile=$(mktemp) - curl -sL --fail "$API/release/$ident" | jq --sort-keys . >"$tempfile" && mv "$tempfile" "$dst" - echo >&2 "[fetched] $dst" -done |