Created
June 18, 2015 13:21
-
-
Save dfritschy/40c5296c16d349456f51 to your computer and use it in GitHub Desktop.
Run this script when parameters in image.yml are changed as eZ 2014.11 does not purge invalid variations automatically
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# purge image variations | |
# | |
# run this script when parameters in image.yml are changed as eZ 2014.11 does not purge invalid | |
# variations automatically | |
readonly variations="reference | |
article_full | |
article_line | |
tile_square | |
tile_rect | |
tile_square_1x | |
tile_rect_1x" | |
for variation in ${variations}; do | |
echo "Purging '${variation}' variation files..." | |
find ezpublish_legacy/var/ezdemo_site/storage/images -name *_${variation}.jpg -print -delete | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment