diff options
author | Duncan Wilkie <antigravityd@gmail.com> | 2024-02-17 11:58:28 -0600 |
---|---|---|
committer | Duncan Wilkie <antigravityd@gmail.com> | 2024-02-17 11:58:28 -0600 |
commit | 6b1a26e49dcca9dde7c9ede2a90bb4d189000519 (patch) | |
tree | 0b15ee214c0e79dc18616c569d815f8af961fa80 | |
parent | f9e88aefd0e06f6ecf4c73201716ae36f0bbe942 (diff) |
Fix permissions issues in build script.
-rwxr-xr-x | build-n-publish.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build-n-publish.sh b/build-n-publish.sh index fabbd29..10fc741 100755 --- a/build-n-publish.sh +++ b/build-n-publish.sh @@ -5,9 +5,13 @@ cd assets/library git fetch --all && git reset --hard origin/master 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/* # Build and publish the HTML site: haunt build && haunt publish + # Now convert to Gemini # Uses https://github.com/LukeEmmet/html2gmi # Converts the site into text/gemini; outputs to ./gemini. @@ -27,7 +31,6 @@ for page in $root/site/*.html; do out=$root/gemini/$(basename $page ".html").gmi html2gmi --input $page --output $out --emitImagesAsLinks --prettyTables --citationMarkers; sed -i 's/\.html/.gmi/g' $out - done for page in $root/site/pages/*.html $root/site/posts/*.html; do |