Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Salzmann-Jaeckel
tmux-resurrect
Commits
123d83c6
Unverified
Commit
123d83c6
authored
Aug 17, 2020
by
Bruno Sutic
Browse files
Do not output deleted files to stdout
parent
e815c50f
Changes
1
Show whitespace changes
Inline
Side-by-side
scripts/save.sh
View file @
123d83c6
...
...
@@ -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
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment