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