diff --git a/functions/fn_compress_unreal2maps b/functions/fn_compress_unreal2maps index 7b319baf8..9a3015f53 100644 --- a/functions/fn_compress_unreal2maps +++ b/functions/fn_compress_unreal2maps @@ -27,7 +27,7 @@ done mkdir -pv "${compressedmapsdir}" > /dev/null 2>&1 rm -rfv "${filesdir}/Maps/*.uz2" cd "${systemdir}" -for map in `ls "${filesdir}/Maps"`; do +for map in "${filesdir}/Maps/*"; do ./ucc-bin compress "../Maps/${map}" --nohomedir done -mv -fv "${filesdir}/Maps/*.uz2" "${compressedmapsdir}" \ No newline at end of file +mv -fv "${filesdir}/Maps/*.uz2" "${compressedmapsdir}" diff --git a/functions/fn_compress_ut99maps b/functions/fn_compress_ut99maps index 780ede5d9..250686972 100644 --- a/functions/fn_compress_ut99maps +++ b/functions/fn_compress_ut99maps @@ -27,7 +27,7 @@ done mkdir -pv "${compressedmapsdir}" > /dev/null 2>&1 rm -rfv "${filesdir}/Maps/*.unr.uz" cd "${systemdir}" -for map in `ls "${filesdir}/Maps"`; do +for map in "${filesdir}/Maps/*"; do ./ucc-bin compress ../Maps/${map} --nohomedir done -mv -fv "${filesdir}/Maps/*.unr.uz" "${compressedmapsdir}" \ No newline at end of file +mv -fv "${filesdir}/Maps/*.unr.uz" "${compressedmapsdir}" diff --git a/functions/fn_unreal2compressmaps b/functions/fn_unreal2compressmaps index f524e05b7..124efcc33 100644 --- a/functions/fn_unreal2compressmaps +++ b/functions/fn_unreal2compressmaps @@ -27,7 +27,7 @@ done mkdir -pv "${compressedmapsdir}" > /dev/null 2>&1 rm -rfv "${filesdir}/Maps/*.uz2" cd "${systemdir}" -for map in `ls "${filesdir}/Maps"`; do +for map in "${filesdir}/Maps/*"; do ./ucc-bin compress "../Maps/${map}" --nohomedir done -mv -fv "${filesdir}/Maps/*.uz2" "${compressedmapsdir}" \ No newline at end of file +mv -fv "${filesdir}/Maps/*.uz2" "${compressedmapsdir}" diff --git a/functions/fn_ut99compressmaps b/functions/fn_ut99compressmaps index 1d6ff1b7b..23466a01d 100644 --- a/functions/fn_ut99compressmaps +++ b/functions/fn_ut99compressmaps @@ -27,7 +27,7 @@ done mkdir -pv "${compressedmapsdir}" > /dev/null 2>&1 rm -rfv "${filesdir}/Maps/*.unr.uz" cd "${systemdir}" -for map in `ls "${filesdir}/Maps"`; do +for map in "${filesdir}/Maps/*"; do ./ucc-bin compress ../Maps/${map} --nohomedir done -mv -fv "${filesdir}/Maps/*.unr.uz" "${compressedmapsdir}" \ No newline at end of file +mv -fv "${filesdir}/Maps/*.unr.uz" "${compressedmapsdir}"