12 lines
265 B
Bash
Executable file
12 lines
265 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
echo "Running user-cleaner..."
|
|
|
|
# clean old logs
|
|
log_dir="$HOME/.cache/logs"
|
|
if [ -d "$log_dir" ]
|
|
then
|
|
echo "Cleaning old logs..."
|
|
find "$log_dir" -type f -mtime +3 -print -delete
|
|
find "$log_dir" -type f -mtime +1 -size -25k -print -delete
|
|
fi
|