6 lines
130 B
Bash
Executable file
6 lines
130 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
# clean old logs
|
|
log_dir="$HOME/.cache/logs"
|
|
[ -d "$log_dir" ] \
|
|
&& find "$log_dir" -type f -mtime +7 -delete
|