From 3e26f55e29090c3776e8e8884babad4860455de4 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 1 Sep 2013 14:22:22 +0100 Subject: [PATCH] ut99server: Fixed map-compressor --- UnrealTournament99/ut99server | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/UnrealTournament99/ut99server b/UnrealTournament99/ut99server index 22cfaa3dc..2fb89c289 100644 --- a/UnrealTournament99/ut99server +++ b/UnrealTournament99/ut99server @@ -287,7 +287,7 @@ pwd echo "" echo "Compressed maps saved to:" echo "" -echo "$compressedmapsdir" +echo "${compressedmapsdir}" echo "" while true; do read -p "Start compression [y/N]" yn @@ -297,11 +297,14 @@ while true; do * ) echo "Please answer yes or no.";; esac done -mkdir $compressedmapsdir -rm -rfv ${filesdir}/Maps/*.uz2 +mkdir ${compressedmapsdir} +rm -rfv ${filesdir}/Maps/*.unr.uz cd ${systemdir} -./ucc-bin compress ../Maps/* --nohomedir -mv -fv ${filesdir}/Maps/*.uz2 $compressedmapsdir +for f in ../Maps/* +do + ./ucc-bin compress $f --nohomedir +done +mv -fv ${filesdir}/Maps/*.unr.uz ${compressedmapsdir} } fn_details(){