From 36e4569c3f93ed9a0b68d5dd4ecdb9d0c0c4b01e Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 12 Jan 2023 05:36:49 +0000 Subject: [PATCH] stupid linebreaks --- dev/_posts/2023-01-12-non-repo-static-content.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dev/_posts/2023-01-12-non-repo-static-content.md b/dev/_posts/2023-01-12-non-repo-static-content.md index 463a463..4270607 100644 --- a/dev/_posts/2023-01-12-non-repo-static-content.md +++ b/dev/_posts/2023-01-12-non-repo-static-content.md @@ -19,8 +19,7 @@ pushd /var/www/pickmystatic pax -rwlpp . /var/www/pickmy popd ``` -
-The problem I was having is if a directory already existed; nothing would symlink. pax solved the problem, except pax copied data. I didn't need the redundancy. +
The problem I was having is if a directory already existed; nothing would symlink. pax solved the problem, except pax copied data. I didn't need the redundancy. I'm getting ready to put another jekyll blog on another domain, so I decided I should fix this once and for all. So here's the new hacky script: @@ -32,8 +31,7 @@ do done ln -s $WWW_STATIC/* $PUBLIC_WWW/ ``` -
-This is called as a seperate script in the githook that runs whenever I push a new post (or change) to the repository. It runs after site generation naturally. It gets a list of existing directories from the static directory; and if the directory exists, symlinks all the files in to it. It then goes back and runs a generic symlink of everything. +
This is called as a seperate script in the githook that runs whenever I push a new post (or change) to the repository. It runs after site generation naturally. It gets a list of existing directories from the static directory; and if the directory exists, symlinks all the files in to it. It then goes back and runs a generic symlink of everything. It works well enough, with the cavet that it will generate a "file exists" error. It's non-fatal though.