From a365df7c70363a1b122362a5abd8428a40b67dbe Mon Sep 17 00:00:00 2001 From: Jordy Hulck Date: Mon, 27 Dec 2021 17:10:35 +0100 Subject: [PATCH] Fix script not deleting old version files when upgrading --- scripts/start-deployCF | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start-deployCF b/scripts/start-deployCF index c00c1dcfab0..6a788393506 100755 --- a/scripts/start-deployCF +++ b/scripts/start-deployCF @@ -47,7 +47,7 @@ if ! isTrue "${USE_MODPACK_START_SCRIPT:-true}"; then if [ "$(cat $installMarker)" != "${FTB_SERVER_MOD}" ]; then log "Upgrading modpack" - serverJar=$(find "${FTB_BASE_DIR}" -not -name "forge*installer.jar" -name "forge*.jar") + serverJar=$(find "${FTB_BASE_DIR}" -type f \( -path "*/libraries/*" -o -path "*/mods/*" \) -prune -o -name "forge*.jar" -not -name "forge*installer.jar" -print) if [[ "${serverJar}" ]]; then rm -rf "$(dirname "${serverJar}")"/{mods,*.jar,libraries,resources,scripts,config} fi