From ed28d29e9bfe0cb023523d64234fa9644b7f22d4 Mon Sep 17 00:00:00 2001 From: Christian Date: Sun, 21 Feb 2021 22:09:37 +0100 Subject: [PATCH] changed to locale hugo_cachedir by using --cacheDir --- admin/generate.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/generate.sh b/admin/generate.sh index c9f3892..4c693b2 100755 --- a/admin/generate.sh +++ b/admin/generate.sh @@ -39,7 +39,6 @@ TMPGIT_POSTS=$GENDIR/kollegen-posts GIT_HUGO=https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo.git GIT_POSTS=https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts.git - # Log a text file content log_file () { cat $1 @@ -123,7 +122,7 @@ fi # Hugo anschmeißen log "Starting hugo" -cd $TMPGIT_HUGO && $HUGO --destination $TMPPUBLIC > $TMPLOG 2> $TMPERR +cd $TMPGIT_HUGO && $HUGO --cacheDir=$HOME/tmp/hugo_cache --destination $TMPPUBLIC > $TMPLOG 2> $TMPERR if [ -f $TMPLOG ] then