2019-01-21 19:20:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-05-14 19:33:48 +00:00
|
|
|
# Clean up cached files that are older than 4 days
|
|
|
|
find tmp/cache/assets/sprockets/ -type f -mtime +4 -execdir rm -- "{}" \;
|
2019-01-21 19:20:38 +00:00
|
|
|
|
|
|
|
du -d 0 -h tmp/cache/assets/sprockets | cut -f1 | xargs -I % echo "tmp/cache/assets/sprockets/ is currently %"
|