|
|
@ -19,7 +19,7 @@ echo "" |
|
|
|
echo "${compressedmapsdir}" |
|
|
|
echo "" |
|
|
|
while true; do |
|
|
|
read -p "Start compression [y/N]" yn |
|
|
|
read -e -i "y" -p "Start compression [Y/n]" yn |
|
|
|
case $yn in |
|
|
|
[Yy]* ) break;; |
|
|
|
[Nn]* ) echo Exiting; return;; |
|
|
@ -27,9 +27,10 @@ while true; do |
|
|
|
esac |
|
|
|
done |
|
|
|
mkdir -pv "${compressedmapsdir}" > /dev/null 2>&1 |
|
|
|
rm -rfv "${filesdir}/Maps/*.unr.uz" |
|
|
|
rm -rfv "${filesdir}/Maps/"*.unr.uz |
|
|
|
cd "${systemdir}" |
|
|
|
for map in "${filesdir}/Maps/*"; do |
|
|
|
./ucc-bin compress "../Maps/${map}" --nohomedir |
|
|
|
./ucc-bin compress "${map}" --nohomedir |
|
|
|
done |
|
|
|
mv -fv "${filesdir}/Maps/*.unr.uz" "${compressedmapsdir}" |
|
|
|
echo "mv -fv ${filesdir}/Maps/*.unr.uz ${compressedmapsdir}" |
|
|
|
mv -fv "${filesdir}/Maps/"*.unr.uz "${compressedmapsdir}" |
|
|
|