images+update: Fix.

This commit is contained in:
William Floyd 2020-03-13 09:28:37 +01:00
parent 3c249e3e9d
commit 23dd1a47cb
Signed by untrusted user who does not match committer: william
GPG key ID: B3EEEDD81893CAF9
2 changed files with 6 additions and 2 deletions

View file

@ -1,13 +1,13 @@
#!/bin/bash
__target='./static/images/reduced/clickbait'
__source='../blog-images/dirs/clickbait/reduced/'
__source='../blog-images/dirs/clickbait/reduced'
if [ -d "${__target}" ]; then
rm -r "${__target}"
fi
mkdir -p "${__target}"
mkdir -p "$(dirname "${__target}")"
cp -r "${__source}" "${__target}"

View file

@ -2,6 +2,10 @@
git pull --recurse-submodules
if [ -d './static/images/reduced/' ]; then
rm -r './static/images/reduced/'
fi
if [ -d './static/images/generated/' ]; then
rm -r './static/images/generated/'
fi