minecraft: prevent error when no files need to be deleted

This commit is contained in:
Harsh Shandilya 2023-01-05 23:32:25 +05:30
parent aef98f9f34
commit 32d5868edf
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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