|
@ -116,16 +116,16 @@ fn_check_steamcmd_ark(){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_check_steamcmd_clear(){ |
|
|
fn_check_steamcmd_clear(){ |
|
|
# Will remove steamcmd dir if steamcmd package is installed. |
|
|
# Will remove steamcmd dir if steamcmd package is installed. |
|
|
if [ "$(command -v steamcmd 2>/dev/null)" ]&&[ -d "${rootdir}/steamcmd" ]; then |
|
|
if [ "$(command -v steamcmd 2>/dev/null)" ]&&[ -d "${rootdir}/steamcmd" ]; then |
|
|
rm -rf "${steamcmddir:?}" |
|
|
rm -rf "${steamcmddir:?}" |
|
|
exitcode=$? |
|
|
exitcode=$? |
|
|
if [ "${exitcode}" != 0 ]; then |
|
|
if [ "${exitcode}" != 0 ]; then |
|
|
fn_script_log_fatal "Removing ${rootdir}/steamcmd" |
|
|
fn_script_log_fatal "Removing ${rootdir}/steamcmd" |
|
|
else |
|
|
else |
|
|
fn_script_log_pass "Removing ${rootdir}/steamcmd" |
|
|
fn_script_log_pass "Removing ${rootdir}/steamcmd" |
|
|
|
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_check_steamcmd_exec(){ |
|
|
fn_check_steamcmd_exec(){ |
|
|