aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--v2/dynamic.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/v2/dynamic.mk b/v2/dynamic.mk
index 768ba30..0aa6420 100644
--- a/v2/dynamic.mk
+++ b/v2/dynamic.mk
@@ -62,7 +62,7 @@ public-copy-content.sentinel: $(content) public-content-mkdir.sentinel
public-copy-code-snippets.sentinel: $(all-generated.snippets) public-content-mkdir.sentinel
echo $? | tr ' ' '\n' | grep '^src/content/' | sed 's|^src/content/||' | \
- awk '{ printf "cp `cat src/content/%s` public/`dirname %s`\n", $$0, $$0 }' | \
+ awk '{ printf "if [ -s src/content/%s ]; then cp `cat src/content/%s` public/`dirname %s`; fi\n", $$0, $$0, $$0 }' | \
sh
touch $@