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}"