From d3b62d6c38267268b1292bf28c1e2ae5a7754f1b Mon Sep 17 00:00:00 2001 From: Duncan Wilkie Date: Sun, 12 May 2024 21:19:57 -0500 Subject: Build script now updates permissions correctly. --- build-n-publish.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build-n-publish.sh') 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 -- cgit v1.2.3