From f3382d06ebd7c952ded45998ac3d995ac9424492 Mon Sep 17 00:00:00 2001 From: Kyle Buller Date: Tue, 21 May 2024 14:12:01 -0500 Subject: [PATCH] Fix TOC parsing when the `package-as` addon is in a subdir --- release.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/release.sh b/release.sh index 3c90a13..10cd4b3 100755 --- a/release.sh +++ b/release.sh @@ -1337,10 +1337,14 @@ for toc_path in "$topdir/$package"{,-Mainline,_Mainline,-Classic,_Classic,-Vanil toc_root_paths["$topdir"]="$package" fi done -# Also check other project root directories for the root TOC file +# Try parsing the project addon in move-folders for info next for path in "${!toc_root_paths[@]}"; do - if [[ -f "$path/$package.toc" ]]; then - set_toc_project_info "$path/$package.toc" + if [[ ${toc_root_paths[$path]} == "$package" ]]; then + for toc_path in "$path/$package"{,-Mainline,_Mainline,-Classic,_Classic,-Vanilla,_Vanilla,-BCC,_BCC,-TBC,_TBC,-Wrath,_Wrath,-WOTLKC,_WOTLKC,-Cata,_Cata}.toc; do + if [[ -f "$toc_path" ]]; then + set_toc_project_info "$toc_path" + fi + done fi done