diff options
-rwxr-xr-x | build-n-publish.sh | 4 |
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 |