try highlighting

master
Jay 2 years ago
parent 70256893cd
commit 3b9037c0d7

@ -14,7 +14,7 @@ Hacky Bash scripts.
The nice thing about Jekyll is it's a satic site generator and works after hours of raging at my machine. The bad thing is it deletes the entire documentroot whenever you generate the site. This means anything not already in the repo doesn't get copied over. There's a lot of large content and stuff I don't want to keep there...mostly because it's a secret. So I sat around and though of the best way to restore all this content. I tried a few bash scripts to symlink, but it failed. So I came up with this: The nice thing about Jekyll is it's a satic site generator and works after hours of raging at my machine. The bad thing is it deletes the entire documentroot whenever you generate the site. This means anything not already in the repo doesn't get copied over. There's a lot of large content and stuff I don't want to keep there...mostly because it's a secret. So I sat around and though of the best way to restore all this content. I tried a few bash scripts to symlink, but it failed. So I came up with this:
``` ```bash
# pushd /var/www/pickmystatic # pushd /var/www/pickmystatic
# pax -rwlpp . /var/www/pickmy # pax -rwlpp . /var/www/pickmy
# popd # popd
@ -25,7 +25,7 @@ The problem I was having is if a directory already existed; nothing would symlin
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: 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:
``` ```bash
dir=$(find $WWW_STATIC -mindepth 1 -type d -printf '%f\n') dir=$(find $WWW_STATIC -mindepth 1 -type d -printf '%f\n')
for d in $dir for d in $dir
do do

Loading…
Cancel
Save