From e2ec63f407b24f58a541255e962e0a7f89afb9e5 Mon Sep 17 00:00:00 2001 From: William Floyd Date: Fri, 13 Mar 2020 06:58:59 +0100 Subject: [PATCH] update: Prepare... --- update.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 3d0ae6e..88cedef 100755 --- a/update.sh +++ b/update.sh @@ -2,8 +2,12 @@ git pull +if [ -d './static/images/generated/']; then + rm -r './static/images/generated/' +fi + find src -iname '*.sh' | while read -r __file; do - time ./${__file} + time ./${__file} "$(dirname "${__file}")/" done HUGO_ENV=production hugo --gc --minify