clean_old_thumbs.sh 163 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 #!/usr/bin/env bash thumb_dir="../web/uploads/thumbs" if [ -d $thumb_dir ] then echo "run cleaner" find $thumb_dir -type f -mtime +30 -exec rm -rf {} \; fi