.dotfiles/.bin/user-cleaner

7 lines
130 B
Text
Raw Normal View History

2023-12-12 17:55:32 +00:00
#!/usr/bin/env sh
# clean old logs
log_dir="$HOME/.cache/logs"
[ -d "$log_dir" ] \
&& find "$log_dir" -type f -mtime +7 -delete