posts fix
Some checks failed
Deploy / build-deploy (push) Failing after 3m26s

This commit is contained in:
Jorijn van der Graaf 2026-08-05 06:17:00 +02:00
commit 728e48fc4f
4 changed files with 41 additions and 28 deletions

View file

@ -150,6 +150,9 @@ if jq --slurpfile map "$MAP" '
else . + { poster: (($m[.poster].path) // .poster) }
end)))
' "$POSTS" > "$TMP_POSTS" 2>/dev/null; then
# Same reason as the chmod on each mirrored file: mktemp is 0600 and the
# mode survives to production, where other users must read this.
chmod 0644 "$TMP_POSTS"
mv "$TMP_POSTS" "$POSTS"
else
rm -f "$TMP_POSTS"