From 7dbbb3cbe76e5e939e72ed75057f4a59eb4a5d55 Mon Sep 17 00:00:00 2001 From: Poil Date: Sun, 25 Jan 2015 22:39:44 +0100 Subject: [PATCH] For ls ... PLEASE NO !!! --- functions/fn_compress_unreal2maps | 4 ++-- functions/fn_compress_ut99maps | 4 ++-- functions/fn_unreal2compressmaps | 4 ++-- functions/fn_ut99compressmaps | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) 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}"