summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-01-13 16:23:21 -0300
committerRoger Gonzalez <roger@rogs.me>2023-01-13 16:23:21 -0300
commit4f5ebf1816c3308709966bf9704884f59616b33e (patch)
tree89867f7620c2ee5dc52a5dd7243f5ddb5888749f /build.sh
parent07ce8f78fafe5adddc746397b9ba1e04ca99b815 (diff)
Readded cleanup on build.sh
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 2dc0e8b..881746d 100755
--- a/build.sh
+++ b/build.sh
@@ -2,4 +2,5 @@
find ./ -type f -name '*.png' -not -path '*/.git/*' -exec sh -c 'cwebp -lossless $1 -o "${1%.png}.webp"' _ {} \;
find . -type f -not -path '*/.git/*' -exec sed -i -e 's/\.png/\.webp/g' {} \;
+rm -rf /var/www/yams.media/*
hugo -s . -d /var/www/yams.media/