share/scripts/clean-cache.sh: remove png cache too

This commit is contained in:
Igor Chubin 2018-12-12 20:58:00 +01:00
parent e466abcd07
commit 83021d2386

View file

@ -2,6 +2,9 @@
CACHEDIR="/wttr.in/cache"
mv "${CACHEDIR}/wego" "${CACHEDIR}/wego.old"
mkdir "${CACHEDIR}/wego"
rm -rf "${CACHEDIR}/wego.old"
for dir in wego proxy-wwo png
do
mv "${CACHEDIR}/${dir}" "${CACHEDIR}/${dir}.old"
mkdir "${CACHEDIR}/${dir}"
rm -rf "${CACHEDIR}/${dir}.old"
done