summaryrefslogtreecommitdiff
path: root/build-n-publish.sh
diff options
context:
space:
mode:
authorDuncan Wilkie <antigravityd@gmail.com>2024-05-12 21:19:57 -0500
committerDuncan Wilkie <antigravityd@gmail.com>2024-05-12 21:19:57 -0500
commitd3b62d6c38267268b1292bf28c1e2ae5a7754f1b (patch)
treee1880ac0b5ba91a95ea46b25ca84bc3af34476a9 /build-n-publish.sh
parent2c7c5bbc8c9b2e122f7a39b8401998ee549c22bd (diff)
Build script now updates permissions correctly.HEADmaster
Diffstat (limited to 'build-n-publish.sh')
-rwxr-xr-xbuild-n-publish.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-n-publish.sh b/build-n-publish.sh
index d340de3..1ae6a2f 100755
--- a/build-n-publish.sh
+++ b/build-n-publish.sh
@@ -7,8 +7,8 @@ cd ../..
# ox-haunt-export sometimes restricts the created post file read permissions to the owner only.
# This gets transferred to the remote by Haunt's ssh access, resulting in publish-only read permissions.
-chmod a+r ./posts/*
-chmod a+r ./assets/image/*
+find ./posts -type f -exec sh -c 'chmod a+r "$0"' {} \;
+find ./assets/image -type f -exec sh -c 'chmod a+r "$0"' {} \;
# Build and publish the HTML site:
haunt build && haunt publish