You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
303 B
Plaintext
10 lines
303 B
Plaintext
4 years ago
|
#!/bin/sh
|
||
|
# Prune old apt-dater history
|
||
|
MTIME=+365
|
||
|
|
||
|
find ~/.local/share/apt-dater/history -name meta -mtime $MTIME -exec dirname {} \; | while read history_dir; do
|
||
|
# We are too squeamish to just use rm -rf
|
||
|
rm -f "$history_dir"/{command,meta,timingfile,typescript,failed}
|
||
|
rmdir "$history_dir"
|
||
|
done
|