Improve some scripts
This commit is contained in:
parent
41935c352c
commit
8d6ab690c4
2 changed files with 11 additions and 1 deletions
6
.bin/user-cleaner
Executable file
6
.bin/user-cleaner
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
# clean old logs
|
||||
log_dir="$HOME/.cache/logs"
|
||||
[ -d "$log_dir" ] \
|
||||
&& find "$log_dir" -type f -mtime +7 -delete
|
Loading…
Add table
Add a link
Reference in a new issue