|
|
@ -7,11 +7,20 @@ |
|
|
|
local commandname="CHECK" |
|
|
|
local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" |
|
|
|
|
|
|
|
# Create directories for the script and console logs |
|
|
|
if [ ! -d "${scriptlogdir}" ]||[ ! -d "${consolelogdir}" ]&&[ "${gamename}" != "TeamSpeak 3" ]; then |
|
|
|
fn_check_logs(){ |
|
|
|
fn_print_dots "Checking for log files" |
|
|
|
sleep 0.5 |
|
|
|
fn_print_info_nl "Checking for log files: Creating log files" |
|
|
|
checklogs=1 |
|
|
|
install_logs.sh |
|
|
|
} |
|
|
|
|
|
|
|
# Create directories for the script and console logs |
|
|
|
if [ ! -d "${scriptlogdir}" ]||[ ! -d "${consolelogdir}" ]&&[ "${gamename}" != "TeamSpeak 3" ]; then |
|
|
|
fn_check_logs |
|
|
|
fi |
|
|
|
|
|
|
|
# Create gamelogdir if variable exist but dir doesn't exist |
|
|
|
if [ -n "${gamelogdir}" ]&&[ ! -d "${gamelogdir}" ]; then |
|
|
|
fn_check_logs |
|
|
|
fi |
|
|
|