aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-11-24 15:52:14 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-11-24 15:52:14 +0100
commitea41317e6765b18310c9e8ba830d75bbe758f854 (patch)
tree61b8220bcdc16f1d86c4b7ee294b6ebdc142564b
parent57d68f5bffecd2beace5af5fd6478480e5033b92 (diff)
downloadfuzzycat-ea41317e6765b18310c9e8ba830d75bbe758f854.tar.gz
fuzzycat-ea41317e6765b18310c9e8ba830d75bbe758f854.zip
log downloads
-rwxr-xr-xtests/fixtures/verify-entity-download.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/fixtures/verify-entity-download.sh b/tests/fixtures/verify-entity-download.sh
index bc229bf..b4b26c0 100755
--- a/tests/fixtures/verify-entity-download.sh
+++ b/tests/fixtures/verify-entity-download.sh
@@ -10,9 +10,10 @@ CSV="verify.csv"
for ident in $(awk -F, '{print $1"\n"$2}' "$CSV"); do
if [ -f "$ident" ]; then
- >&2 echo "[cached] $ident"
+ echo >&2 "[cached] $ident"
continue
fi
- tempfile=$(mktemp)
- curl -sL --fail "$API/release/$ident" | jq --sort-keys . > "$tempfile" && mv "$tempfile" "$ident"
+ tempfile=$(mktemp)
+ curl -sL --fail "$API/release/$ident" | jq --sort-keys . >"$tempfile" && mv "$tempfile" "$ident"
+ echo >&2 "[fetched] $ident"
done