mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-16 09:06:59 +05:30
minecraft: prevent error when no files need to be deleted
This commit is contained in:
parent
aef98f9f34
commit
32d5868edf
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ function update_paper() {
|
|||
}
|
||||
|
||||
function cleanup_previous_jars() {
|
||||
find . -maxdepth 1 -type f -name 'paper-*.jar' | sort -r | tail -n +3 | xargs rm -v
|
||||
find . -maxdepth 1 -type f -name 'paper-*.jar' | sort -r | tail -n +3 | xargs rm -vf
|
||||
}
|
||||
|
||||
update_paper
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue