mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-04-03 04:08:52 +00:00
feat: improvde REMOVE_OLD_MODS option (#688)
This commit is contained in:
@@ -54,9 +54,6 @@ done
|
||||
if [ -d /mods ]; then
|
||||
log "Copying any mods over..."
|
||||
mkdir -p /data/mods
|
||||
if isTrue "${REMOVE_OLD_MODS}"; then
|
||||
rsyncArgs=(--delete)
|
||||
fi
|
||||
rsync -a --out-format="update:%f:Last Modified %M" "${rsyncArgs[@]}" --prune-empty-dirs --update /mods /data
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user