Use file to speed up removal of old PaperMC server jars

#779
This commit is contained in:
Geoff Bourne 2021-02-23 20:04:34 -06:00
parent 32bc0382d6
commit e5e97a3560

View File

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