blog/update.sh
2020-03-13 07:44:06 +01:00

17 lines
298 B
Bash
Executable file

#!/bin/bash
git pull
if [ -d './static/images/generated/' ]; then
rm -r './static/images/generated/'
fi
git submodule update --remote --merge
find src -iname '*.sh' | while read -r __file; do
time ./${__file} "$(dirname "${__file}")/"
done
HUGO_ENV=production hugo --gc --minify
exit