Changed order of /plugins rsync to be before processing env vars

For #577
This commit is contained in:
Geoff Bourne
2020-07-06 17:16:51 -05:00
parent 825833c859
commit 9a7a532f7b
21 changed files with 35 additions and 30 deletions

View File

@@ -66,18 +66,6 @@ do
fi
done
case ${TYPE} in
SPIGOT|BUKKIT|PAPER)
mkdir -p /data/plugins
if [ -d /plugins ]; then
log "Copying plugins over..."
# Copy plugins over using rsync to allow deeply nested updates of plugins
# only updates files if the source file is newer and print updated files
rsync -a --out-format="update:%f:Last Modified %M" --prune-empty-dirs --update /plugins /data
fi
;;
esac
EXTRA_ARGS=""
# Optional disable console
if versionLessThan 1.14 && [[ ${CONSOLE,,} = false ]]; then