stupid linebreaks

master
Jay 1 year ago
parent 07b92019be
commit 36e4569c3f

@ -19,8 +19,7 @@ pushd /var/www/pickmystatic
pax -rwlpp . /var/www/pickmy
popd
```
<br>
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.
<br>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/
```
<br>
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.
<br>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.

Loading…
Cancel
Save