Skip to content

Commit 0be5bbb

Browse files
committed
lint
1 parent 3ccf575 commit 0be5bbb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lgsm/modules/compress_unreal2_maps.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Author: Daniel Gibbs
44
# Contributors: https://linuxgsm.com/contrib
55
# Website: https://linuxgsm.com
6-
# Description: Compresses unreal maps.
6+
# Description: Compresses unreal resources.
77

88
commandname="MAP-COMPRESSOR"
99
commandaction="Compressing Maps"
@@ -33,13 +33,10 @@ find "${serverfiles}" \( -name "*.ut2.uz2" -o -name "*.rom.uz2" -o -name "*.utx.
3333
echo -e "Searching for Unreal Engine files to compress..."
3434
echo -e "Look in game config file for maps"
3535

36-
# mapext=$(awk -F= '/^[[:space:]]*MapExt[[:space:]]*=/ {gsub(/^[ \t"]+|[ \t"]+$/, "", $2); print $2; exit}' "${servercfgfullpath}")
37-
# echo "Detected map extension: $mapext"
38-
3936
# List of extensions to compress (excluding .ogg)
4037
exts="ut2 kfm rom u ucl upl ini int utx uax ukx usx"
4138

42-
# Remove old compressed files for these extensions
39+
# Remove any old compressed files for these extensions
4340
for ext in $exts; do
4441
find "${serverfiles}" -name "*.${ext}.uz2" -type f -exec rm -fv {} \;
4542
done

0 commit comments

Comments
 (0)