Browse Source

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.
pull/4805/head
Daniel Gibbs 4 days ago
parent
commit
49f5cd3b5d
Failed to extract signature
  1. 2
      lgsm/modules/compress_unreal_maps.sh

2
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

Loading…
Cancel
Save