Skip to content

Instantly share code, notes, and snippets.

@stanwu
Created October 30, 2020 09:00
Show Gist options
  • Save stanwu/0e7c71e75206e35d998bc208ece63d28 to your computer and use it in GitHub Desktop.
Save stanwu/0e7c71e75206e35d998bc208ece63d28 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Before:"
du -h -d 0 .gradle
find ~/.gradle -type f -atime +30 -delete
find ~/.gradle -type d -mindepth 1 -empty -delete
echo "Now:"
du -h -d 0 .gradle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment