Skip to content

Commit 25f5b40

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 ffe8876 commit 25f5b40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)