summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-18 21:09:11 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-18 21:09:11 +0000
commit93d7441cc98c1db55797a2181a3d9f4b3d26d82c (patch)
tree72a7da7027a656239c2a40cfcef1db58238a2247 /scripts
parent6b8d671de726534a03c18e025a586e1bc9c04a4f (diff)
downloadgitlab-ce-93d7441cc98c1db55797a2181a3d9f4b3d26d82c.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/clean-old-cached-assets2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/clean-old-cached-assets b/scripts/clean-old-cached-assets
index 8bdd3a9cdb6..9a373439e5e 100755
--- a/scripts/clean-old-cached-assets
+++ b/scripts/clean-old-cached-assets
@@ -2,5 +2,7 @@
# Clean up cached files that are older than 4 days
find tmp/cache/assets/sprockets/ -type f -mtime +4 -execdir rm -- "{}" \;
+find tmp/cache/webpack-dlls/ -maxdepth 1 -type d -mtime +4 -exec rm -rf -- "{}" \;
du -d 0 -h tmp/cache/assets/sprockets | cut -f1 | xargs -I % echo "tmp/cache/assets/sprockets/ is currently %"
+du -d 0 -h tmp/cache/webpack-dlls | cut -f1 | xargs -I % echo "tmp/cache/webpack-dlls is currently %"