From 49f5cd3b5d328cb0dde0995f6dee6e60e358cd4a Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 9 Aug 2025 01:20:08 +0100 Subject: [PATCH] fix(compress_unreal_maps): correct array usage in file compression loop * Updated the loop to iterate over the `exts` array correctly using `"${exts[@]}"` instead of `${exts}`. * This change ensures proper handling of file extensions during the compression process. --- lgsm/modules/compress_unreal_maps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/modules/compress_unreal_maps.sh b/lgsm/modules/compress_unreal_maps.sh index dd6d6ffc9..6b97e03d9 100644 --- a/lgsm/modules/compress_unreal_maps.sh +++ b/lgsm/modules/compress_unreal_maps.sh @@ -55,7 +55,7 @@ done cd "${systemdir}" || exit # Find and compress files, then move .uz2 to compressedmapsdir -for ext in ${exts}; do +for ext in "${exts[@]}"; do # Collect all files with the current extension into an array mapfile -t files < <(find "${serverfiles}" -name "*.${ext}" -type f) for file in "${files[@]}"; do