Limit depth when finding old PaperMC server jars

Fixes #750
This commit is contained in:
Geoff Bourne 2021-02-07 09:26:37 -06:00
parent beeaf1a996
commit 959bf73485

View file

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