diff options
author | crupest <crupest@outlook.com> | 2022-11-30 19:07:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-30 19:07:56 +0800 |
commit | 2c7db65ebe8314e153e2d273f7f74a12d328e650 (patch) | |
tree | 57ac65accf7da8f6986edb40ee01078e528a40ae /docker/crupest-blog/update.bash | |
parent | b2fb84b577467ca7b0fc7139a7ad50c24c434d18 (diff) | |
download | crupest-2c7db65ebe8314e153e2d273f7f74a12d328e650.tar.gz crupest-2c7db65ebe8314e153e2d273f7f74a12d328e650.tar.bz2 crupest-2c7db65ebe8314e153e2d273f7f74a12d328e650.zip |
Make hugo generate to another dir out of git.
Diffstat (limited to 'docker/crupest-blog/update.bash')
-rwxr-xr-x | docker/crupest-blog/update.bash | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docker/crupest-blog/update.bash b/docker/crupest-blog/update.bash index f4ac51b..d4bcadc 100755 --- a/docker/crupest-blog/update.bash +++ b/docker/crupest-blog/update.bash @@ -5,6 +5,8 @@ set -e echo -e "\e[0;103m\e[K\e[1mBegin to build blog...\e[0m" echo "Begin time: $(date +%Y-%m-%dT%H:%M:%SZ)" +mkdir -p /public + # check /blog directory exists if [[ ! -d /blog ]]; then echo "Directory /blog not found, clone blog repository..." @@ -21,7 +23,7 @@ fi # Now hugo it echo "Run hugo to generate blog..." -hugo +hugo -d /public echo "Finish time: $(date +%Y-%m-%dT%H:%M:%SZ)" echo -e "\e[0;102m\e[K\e[1mFinish build!\e[0m" |