aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtests/fixtures/verify-entity-download.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fixtures/verify-entity-download.sh b/tests/fixtures/verify-entity-download.sh
index 790afa0..bc229bf 100755
--- a/tests/fixtures/verify-entity-download.sh
+++ b/tests/fixtures/verify-entity-download.sh
@@ -13,5 +13,6 @@ for ident in $(awk -F, '{print $1"\n"$2}' "$CSV"); do
>&2 echo "[cached] $ident"
continue
fi
- curl -sL --fail "$API/release/$ident" | jq --sort-keys . >"$ident"
+ tempfile=$(mktemp)
+ curl -sL --fail "$API/release/$ident" | jq --sort-keys . > "$tempfile" && mv "$tempfile" "$ident"
done