Fixed warning reported when no paper jars to remove

This commit is contained in:
Geoff Bourne 2021-03-09 22:05:21 -06:00
parent 6c6bf030c5
commit d3bd697cb2

View File

@ -57,6 +57,7 @@ else
fi fi
log "Removing old PaperMC versions ..." log "Removing old PaperMC versions ..."
shopt -s nullglob
for f in paper-*.jar; do for f in paper-*.jar; do
[[ $f != $SERVER ]] && rm $f [[ $f != $SERVER ]] && rm $f
done done