From e5e97a35607d2462d8314b482966ab20147b182d Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Tue, 23 Feb 2021 20:04:34 -0600 Subject: [PATCH] Use file to speed up removal of old PaperMC server jars #779 --- start-deployPaper | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/start-deployPaper b/start-deployPaper index 10a88d25..6058be2b 100644 --- a/start-deployPaper +++ b/start-deployPaper @@ -57,8 +57,9 @@ else fi log "Removing old PaperMC versions ..." - paperJarSearchString=${SERVER/$build/[0-9]*} - find . -maxdepth 1 -name "$paperJarSearchString" ! -name "$SERVER" -delete -print + for f in paper-*.jar; do + [[ $f != $SERVER ]] && rm $f + done log "Downloading PaperMC $VANILLA_VERSION (build $build) ..." curl -fsSL -o "$SERVER" "${zarg[@]}" \