From 9210044b8d3a348adb1ff57a4c6cedfd68ebcdd3 Mon Sep 17 00:00:00 2001 From: Cayce House Date: Tue, 19 Jul 2022 08:28:58 -0400 Subject: [PATCH] fix #1612 (#1614) --- scripts/start-setupModpack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start-setupModpack b/scripts/start-setupModpack index 755c49b2..34459fc8 100755 --- a/scripts/start-setupModpack +++ b/scripts/start-setupModpack @@ -235,7 +235,7 @@ function genericPacks() { done # recalculate the actual base directory of content - base_dir=$(find "$base_dir" -maxdepth 3 -type d \( -name mods -o -name plugins -o -name config \) -printf '%h\n' | awk '{ print length, $0 }' | sort -n -s | cut -d" " -f2- | head -n1 | xargs echo -n) + base_dir=$(find "$base_dir" -maxdepth 3 -type d \( -name mods -o -name plugins -o -name config \) -printf '%h\n' | awk '{ print length;print $0 }' | sort -n -s | cut -d" " -f2- | head -n1 | xargs echo -n) if [[ ! $base_dir ]]; then log "ERROR: Unable to find content base of generic packs ${GENERIC_PACKS}. Directories:" find $original_base_dir -maxdepth 3 -type d -printf ' - %P\n'