From 8440e571183efe488c91bd661f98d4af72e4b737 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Fri, 10 Apr 2020 10:59:07 -0500 Subject: [PATCH] Fixed support for modpacks that has multiple forge jars HR New Beginnings was one such modpack --- start-deployFTB | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/start-deployFTB b/start-deployFTB index c9745cbb..dfdab6fe 100644 --- a/start-deployFTB +++ b/start-deployFTB @@ -76,7 +76,9 @@ fi if [[ $(find ${FTB_BASE_DIR} $entryScriptExpr | wc -l) = 0 ]]; then - forgeJar=$(find ${FTB_BASE_DIR} -name 'forge*.jar' -a -not -name 'forge*installer') + # Allow up to 2 levels since some modpacks have a top-level directory named + # for the modpack + forgeJar=$(find ${FTB_BASE_DIR} -maxdepth 2 -name 'forge*.jar' -a -not -name 'forge*installer') if [[ "$forgeJar" ]]; then export FTB_BASE_DIR=$(dirname "${forgeJar}") log "No entry script found, so building one for ${forgeJar}"