images+update: Fix.
This commit is contained in:
parent
3c249e3e9d
commit
23dd1a47cb
2 changed files with 6 additions and 2 deletions
|
|
@ -1,13 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
__target='./static/images/reduced/clickbait'
|
__target='./static/images/reduced/clickbait'
|
||||||
__source='../blog-images/dirs/clickbait/reduced/'
|
__source='../blog-images/dirs/clickbait/reduced'
|
||||||
|
|
||||||
if [ -d "${__target}" ]; then
|
if [ -d "${__target}" ]; then
|
||||||
rm -r "${__target}"
|
rm -r "${__target}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "${__target}"
|
mkdir -p "$(dirname "${__target}")"
|
||||||
|
|
||||||
cp -r "${__source}" "${__target}"
|
cp -r "${__source}" "${__target}"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
git pull --recurse-submodules
|
git pull --recurse-submodules
|
||||||
|
|
||||||
|
if [ -d './static/images/reduced/' ]; then
|
||||||
|
rm -r './static/images/reduced/'
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d './static/images/generated/' ]; then
|
if [ -d './static/images/generated/' ]; then
|
||||||
rm -r './static/images/generated/'
|
rm -r './static/images/generated/'
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue