Don't fail pelican builds when no drafts

This commit is contained in:
randogoth 2026-02-07 21:38:51 +02:00
parent 6a9ba0dd94
commit a261baff99

View file

@ -24,7 +24,7 @@ let
${copyPlugins}
if [ -d content ]; then
# Drop draft content before building (Pelican draft detection can be inconsistent).
grep -RIl '^status:[[:space:]]*draft' content | xargs -r rm -f
(grep -RIl '^status:[[:space:]]*draft' content || true) | xargs -r rm -f
fi
# nfc-web's `geohash` Pelican plugin imports `geohash_tools`, but that module
# isn't shipped in the repo. Provide a tiny implementation at build time.