From 959bf73485b2a5964d7241e8bfafeff55d374864 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 7 Feb 2021 09:26:37 -0600 Subject: [PATCH] Limit depth when finding old PaperMC server jars Fixes #750 --- start-deployPaper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start-deployPaper b/start-deployPaper index 5bc7a02c..10a88d25 100644 --- a/start-deployPaper +++ b/start-deployPaper @@ -58,7 +58,7 @@ else log "Removing old PaperMC versions ..." paperJarSearchString=${SERVER/$build/[0-9]*} - find . -name "$paperJarSearchString" ! -name "$SERVER" -delete -print + find . -maxdepth 1 -name "$paperJarSearchString" ! -name "$SERVER" -delete -print log "Downloading PaperMC $VANILLA_VERSION (build $build) ..." curl -fsSL -o "$SERVER" "${zarg[@]}" \