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[@]}" \