Skip to content

Commit 258ae5c

Browse files
dgibbs64Copilot
andcommitted
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 25bbe3e commit 258ae5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lgsm/modules/compress_unreal_maps.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ fn_print_nl
3333
mkdir -pv "${compressedmapsdir}" > /dev/null 2>&1
3434

3535
# List of extensions to compress
36-
exts="ut2 kfm rom u ucl upl int utx uax ukx usx unr umx umod uzx"
36+
exts=(ut2 kfm rom u ucl upl int utx uax ukx usx unr umx umod uzx)
3737

3838
# Remove old compressed files using find
39-
for ext in ${exts}; do
39+
for ext in "${exts[@]}"; do
4040
mapfile -t oldfiles < <(find "${serverfiles}" -name "*.${ext}.uz2" -type f)
4141
if [ ${#oldfiles[@]} -gt 0 ]; then
4242
echo -e "found ${#oldfiles[@]} old compressed file(s) to remove for extension: ${ext}"

0 commit comments

Comments
 (0)