Skip to content

Commit 6dd9709

Browse files
committed
fix: add new info about steamcmd failures
This commit fixes an issue in the core_dl.sh script where disk write failures and missing update files were not being handled correctly. Now, when a disk write failure or missing update files occur during the download process, appropriate error messages are displayed and logged.
1 parent 7d50e3a commit 6dd9709

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lgsm/modules/core_dl.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ fn_dl_steamcmd() {
119119
elif [ -n "$(grep "0x402" "${steamcmdlog}" | tail -1)" ] || [ -n "$(grep "0x602" "${steamcmdlog}" | tail -1)" ]; then
120120
fn_print_error2_nl "${commandaction} ${selfname}: ${remotelocation}: Update required but not completed - check network"
121121
fn_script_log_error "${commandaction} ${selfname}: ${remotelocation}: Update required but not completed - check network"
122+
# Disk write failure.
123+
elif [ -n "$(grep "0x606" "${steamcmdlog}" | tail -1)" ] || [ -n "$(grep "0x602" "${steamcmdlog}" | tail -1)" ]; then
124+
fn_print_error2_nl "${commandaction} ${selfname}: ${remotelocation}: Disk write failure"
125+
fn_script_log_error "${commandaction} ${selfname}: ${remotelocation}: Disk write failure"
126+
# Missing update files.
127+
elif [ -n "$(grep "0x626" "${steamcmdlog}" | tail -1)" ] || [ -n "$(grep "0x626" "${steamcmdlog}" | tail -1)" ]; then
128+
fn_print_error2_nl "${commandaction} ${selfname}: ${remotelocation}: Missing update files"
129+
fn_script_log_error "${commandaction} ${selfname}: ${remotelocation}: Missing update files"
122130
else
123131
fn_print_error2_nl "${commandaction} ${selfname}: ${remotelocation}: Unknown error occured"
124132
echo -en "Please provide content log to LinuxGSM developers https://linuxgsm.com/steamcmd-error"

0 commit comments

Comments
 (0)