From 0be5bbb0c50466d227f612b5b50db5011fe26687 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 27 Jun 2025 17:36:25 +0100 Subject: [PATCH] lint --- lgsm/modules/compress_unreal2_maps.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lgsm/modules/compress_unreal2_maps.sh b/lgsm/modules/compress_unreal2_maps.sh index e1624a526..ed3c1ddaa 100644 --- a/lgsm/modules/compress_unreal2_maps.sh +++ b/lgsm/modules/compress_unreal2_maps.sh @@ -3,7 +3,7 @@ # Author: Daniel Gibbs # Contributors: https://linuxgsm.com/contrib # Website: https://linuxgsm.com -# Description: Compresses unreal maps. +# Description: Compresses unreal resources. commandname="MAP-COMPRESSOR" commandaction="Compressing Maps" @@ -33,13 +33,10 @@ find "${serverfiles}" \( -name "*.ut2.uz2" -o -name "*.rom.uz2" -o -name "*.utx. echo -e "Searching for Unreal Engine files to compress..." echo -e "Look in game config file for maps" -# mapext=$(awk -F= '/^[[:space:]]*MapExt[[:space:]]*=/ {gsub(/^[ \t"]+|[ \t"]+$/, "", $2); print $2; exit}' "${servercfgfullpath}") -# echo "Detected map extension: $mapext" - # List of extensions to compress (excluding .ogg) exts="ut2 kfm rom u ucl upl ini int utx uax ukx usx" -# Remove old compressed files for these extensions +# Remove any old compressed files for these extensions for ext in $exts; do find "${serverfiles}" -name "*.${ext}.uz2" -type f -exec rm -fv {} \; done