Browse Source

messages

pull/914/head
Daniel Gibbs 9 years ago
parent
commit
62a07a4a02
  1. 12
      lgsm/functions/core_dl.sh
  2. 4
      lgsm/functions/fix.sh
  3. 2
      lgsm/functions/install_logs.sh

12
lgsm/functions/core_dl.sh

@ -28,15 +28,15 @@ fn_dl_md5(){
fn_print_fail_eol_nl fn_print_fail_eol_nl
echo "${filename} returned MD5 checksum: ${md5sumcmd}" echo "${filename} returned MD5 checksum: ${md5sumcmd}"
echo "expected MD5 checksum: ${md5}" echo "expected MD5 checksum: ${md5}"
fn_script_log_fatal "verifying ${filename} with MD5: FAIL" fn_script_log_fatal "Verifying ${filename} with MD5: FAIL"
fn_script_log_info "${filename} returned MD5 checksum: ${md5sumcmd}" fn_script_log_info "${filename} returned MD5 checksum: ${md5sumcmd}"
fn_script_log_info "expected MD5 checksum: ${md5}" fn_script_log_info "Expected MD5 checksum: ${md5}"
exit 1 exit 1
else else
fn_print_ok_eol_nl fn_print_ok_eol_nl
fn_script_log_pass "verifying ${filename} with MD5: OK" fn_script_log_pass "Verifying ${filename} with MD5: OK"
fn_script_log_info "${filename} returned MD5 checksum: ${md5sumcmd}" fn_script_log_info "${filename} returned MD5 checksum: ${md5sumcmd}"
fn_script_log_info "expected MD5 checksum: ${md5}" fn_script_log_info "Expected MD5 checksum: ${md5}"
fi fi
fi fi
} }
@ -51,7 +51,7 @@ fn_dl_extract(){
extractdir="${3}" extractdir="${3}"
# extracts archives # extracts archives
echo -ne "extracting ${filename}..." echo -ne "extracting ${filename}..."
fn_script_log_info "extracting download" fn_script_log_info "Extracting download"
mime=$(file -b --mime-type "${filedir}/${filename}") mime=$(file -b --mime-type "${filedir}/${filename}")
if [ "${mime}" == "application/gzip" ]||[ "${mime}" == "application/x-gzip" ]; then if [ "${mime}" == "application/gzip" ]||[ "${mime}" == "application/x-gzip" ]; then
@ -62,7 +62,7 @@ fn_dl_extract(){
local exitcode=$? local 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 "extracting download: FAIL" fn_script_log_fatal "Extracting download: FAIL"
echo "${tarcmd}" | tee -a "${scriptlog}" echo "${tarcmd}" | tee -a "${scriptlog}"
core_exit.sh core_exit.sh
else else

4
lgsm/functions/fix.sh

@ -19,11 +19,11 @@ fn_fix_msg_start(){
fn_fix_msg_end(){ fn_fix_msg_end(){
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
fn_print_fail_nl "Applying ${fixname} fix: ${gamename}" fn_print_fail_nl "Applying ${fixname} fix: ${gamename}"
fn_script_log_error "Failure! Applying ${fixname} fix: ${gamename}" fn_script_log_error "Applying ${fixname} fix: ${gamename}"
exitcode=2 exitcode=2
else else
fn_print_ok_nl "Applying ${fixname} fix: ${gamename}" fn_print_ok_nl "Applying ${fixname} fix: ${gamename}"
fn_script_log_pass "Complete! Applying ${fixname} fix: ${gamename}" fn_script_log_pass "Applying ${fixname} fix: ${gamename}"
fi fi
} }

2
lgsm/functions/install_logs.sh

@ -40,4 +40,4 @@ if [ -d "${rootdir}/Steam/logs" ]; then
fi fi
fi fi
sleep 1 sleep 1
fn_script_log_info "logs installed" fn_script_log_info "Logs installed"
Loading…
Cancel
Save