From 6ed5d5859aa39d7b807d005ce00b536549d920c5 Mon Sep 17 00:00:00 2001 From: Mieszko Makuch Date: Thu, 3 Sep 2026 19:50:43 +0200 Subject: [PATCH] build.sh: recreate pruned parent dirs before the content overlay (checkout of the content-free tree removes empty src/content) --- deploy/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/build.sh b/deploy/build.sh index e12992c..b65f7ff 100755 --- a/deploy/build.sh +++ b/deploy/build.sh @@ -91,8 +91,10 @@ podman run --rm --network="$BUILD_NETNS" --memory=1g \ } sync_clone repo "$CODE_URL" "$CODE_SHA" sync_clone content "$CONTENT_URL" "$CONTENT_SHA" - # Overlay content onto code (these paths are gitignored in the code repo) + # Overlay content onto code (these paths are gitignored in the code repo). + # mkdir -p: checkout prunes the emptied parent dirs, cp needs them back. rm -rf repo/src/content/news repo/src/content/pages repo/public/uploads + mkdir -p repo/src/content repo/public cp -a content/news repo/src/content/news cp -a content/pages repo/src/content/pages cp -a content/uploads repo/public/uploads