Skip to content

Commit 49f5cd3

Browse files
committed
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.
1 parent 8370668 commit 49f5cd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lgsm/modules/compress_unreal_maps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ done
5555
cd "${systemdir}" || exit
5656

5757
# Find and compress files, then move .uz2 to compressedmapsdir
58-
for ext in ${exts}; do
58+
for ext in "${exts[@]}"; do
5959
# Collect all files with the current extension into an array
6060
mapfile -t files < <(find "${serverfiles}" -name "*.${ext}" -type f)
6161
for file in "${files[@]}"; do

0 commit comments

Comments
 (0)