minecraft: prevent error when no files need to be deleted
This commit is contained in:
parent
aef98f9f34
commit
32d5868edf
|
@ -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…
Reference in New Issue