Browse Source

less compression output & clear tabs

pull/1331/head
UltimateByte 8 years ago
committed by GitHub
parent
commit
1346393250
  1. 37
      lgsm/functions/command_fastdl.sh

37
lgsm/functions/command_fastdl.sh

@ -62,22 +62,22 @@ if [ "${gamename}" == "Garry's Mod" ]; then
fi fi
fi fi
fn_clear_old_fastdl(){ fn_clear_old_fastdl(){
# Clearing old FastDL # Clearing old FastDL
if [ -d "${fastdldir}" ];then if [ -d "${fastdldir}" ];then
echo -en "clearing existing FastDL directory ${fastdldir}..." echo -en "clearing existing FastDL directory ${fastdldir}..."
rm -R "${fastdldir:?}"/* rm -R "${fastdldir:?}"/*
exitcode=$? exitcode=$?
if [ ${exitcode} -ne 0 ]; then if [ ${exitcode} -ne 0 ]; then
fn_print_fail_eol_nl fn_print_fail_eol_nl
fn_script_log_fatal "Clearing existing FastDL directory ${fastdldir}" fn_script_log_fatal "Clearing existing FastDL directory ${fastdldir}"
core_exit.sh core_exit.sh
else else
fn_print_ok_eol_nl fn_print_ok_eol_nl
fn_script_log_pass "Clearing existing FastDL directory ${fastdldir}" fn_script_log_pass "Clearing existing FastDL directory ${fastdldir}"
fi fi
sleep 0.5 sleep 0.5
fi fi
} }
fn_clear_old_fastdl_alt(){ fn_clear_old_fastdl_alt(){
@ -435,11 +435,10 @@ fn_fastdl_bzip2(){
fn_script_log_fatal "compressing ${filetocompress}" fn_script_log_fatal "compressing ${filetocompress}"
core_exit.sh core_exit.sh
else else
fn_print_ok_eol_nl
fn_script_log_pass "compressing ${filetocompress}" fn_script_log_pass "compressing ${filetocompress}"
fi fi
done < <(find "${fastdldir:?}" \( -type f ! -name "*.bz2" \)) done < <(find "${fastdldir:?}" \( -type f ! -name "*.bz2" \))
echo "" fn_print_ok_eol_nl
} }
# Run functions # Run functions
@ -452,7 +451,7 @@ fi
fn_fastdl_bzip2 fn_fastdl_bzip2
# Finished message # Finished message
echo "FastDL files are located in:" echo "FastDL files are located in:"
echo "${webdir}" echo "${fastdldir}"
echo "FastDL completed" echo "FastDL completed"
fn_script_log_info "FastDL completed" fn_script_log_info "FastDL completed"
core_exit.sh core_exit.sh

Loading…
Cancel
Save