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