mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-21 11:58:49 +00:00
Do not output deleted files to stdout
This commit is contained in:
parent
e815c50f13
commit
123d83c668
@ -274,7 +274,7 @@ remove_old_backups() {
|
||||
local -a files
|
||||
files=($(ls -t $(resurrect_dir)/${RESURRECT_FILE_PREFIX}_*.${RESURRECT_FILE_EXTENSION} | tail -n +6))
|
||||
[[ ${#files[@]} -eq 0 ]] ||
|
||||
find "${files[@]}" -type f -mtime "+${delete_after}" -exec rm -v "{}" \;
|
||||
find "${files[@]}" -type f -mtime "+${delete_after}" -exec rm -v "{}" \; > /dev/null
|
||||
}
|
||||
|
||||
save_all() {
|
||||
|
Loading…
Reference in New Issue
Block a user